+ Reply to Thread
Results 1 to 8 of 8

multipule Vlookup in cell

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    multipule Vlookup in cell

    I am in need of some help. I understand the IF statement in its basic form, but I have come upon the need for a more complex statement.

    In the work sheet I have two columns that have dates in them, (B1 and D1). What I am trying to do is have column U1 show B1 date, if it has a date. If no date in column B1 then show D1 date in column U1, if no date inB1 or D1 then column U1 needs to show current date.

    I have a second request with this, how do I get an error message to show if I’m trying to enter a date in column D1 when a date is already there? I’m using VBA here.
    Thanks in advance for the help.
    Book1.xlsm

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: multipule Vlookup in cell

    i cant answer the VBA

    =IF(AND(B1="",D1=""),TODAY(),IF(AND(B1="",D1<>""),D1,B1))

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: multipule Vlookup in cell

    this will only show the B1 date or 01/00/00

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: multipule Vlookup in cell

    worked OK for me

    can you post a sample spreadsheet

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: multipule Vlookup in cell

    look in my first post, its book1.xlsm

  6. #6
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: multipule Vlookup in cell

    etaf, i'm sorry, I just looked at my first post and saw I didn't mention that I a'm using vlookup from cell A1 for my Datasearch. My mistake.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: multipule Vlookup in cell

    i'm not sure this is 100%
    but is this the sort of thing you are after doing

    =IF(AND(VLOOKUP(G6, $A$1:$D$9,2,FALSE)="",VLOOKUP(G6, $A$1:$D$9,4,FALSE)=""),TODAY(),IF(AND(VLOOKUP(G6, $A$1:$D$9,2,FALSE)="",VLOOKUP(G6, $A$1:$D$9,4,FALSE)=""),VLOOKUP(G6, $A$1:$D$9,4,FALSE),VLOOKUP(G6, $A$1:$D$9,2,FALSE)))

    i may need to work on tomorrow (uk time zone)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: multipule Vlookup in cell

    Solved it by myself using helper cell

+ 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