+ Reply to Thread
Results 1 to 5 of 5

Date difference and automatically generate other values in another column

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    Date difference and automatically generate other values in another column

    VBA code required
    i want values in column "K" based on the Values in column "G"...ie

    column G Column K
    <3500 OK
    >=3501 & <4500 OA
    >=4501 & <5500 OA&NE

    i also want that whn value of column K becomes "OK" then the fill color of the cell become Green , and if it is OA then it is Blue and if it is OA&NE then it is red.
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Date difference and automatically generate other values in another column

    Dupe post see Post #3
    Last edited by mike7952; 03-07-2013 at 11:00 PM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Date difference and automatically generate other values in another column

    Maybe this

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: Date difference and automatically generate other values in another column

    This code is working fine when i place it in module...but when i use it in sheet1 i.e workshhet_change the system helds ... plz guide and help me ..how can i use it in sheet1 code ... eg when i enter DOB value and hit enter button from keyboard ..then this code works automatically.
    Thanks

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Date difference and automatically generate other values in another column

    Ok maybe this

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1