Results 1 to 17 of 17

Conditional input in a cell based on data in two different cells and other values

Threaded View

  1. #1
    Registered User
    Join Date
    12-04-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    43

    Conditional input in a cell based on data in two different cells and other values

    I have lot of data in three columns like this. The first column is "Name", the second is "Comment" wherein I want the macro to write some comment, the third one is DOB. The problem is that the names in column 1 repeats many times. I want a macro to write in column B "either Old or Older or Oldest" based on the Name and DOB. Thus David with DOB 13 Sep 1982 be marked Oldest in Column B and David with DOB 25 Aug 1988 be marked Older and David with DOB 24 May 1990 be marked Old. Similarly William and Rita should be marked either old or older or oldest. As the data are enormous I do not want to refer the actual name in the programming. I want to call them using a variable in programming.
    Name Comment DOB
    David 25 August 1988
    David 13 September 1982
    David 24 May 1990
    William 24 March 1980
    William 25 July 1987
    William 13 August 1989
    Rita 17 July 1990
    Rita 24 April 1989
    Rita 13 June 1988
    If such a task can be performed using VBA? Any help.
    P.S. The example file is attached
    Attached Files Attached Files

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