+ Reply to Thread
Results 1 to 10 of 10

If Statement with Vlookup

  1. #1
    Registered User
    Join Date
    02-18-2010
    Location
    T.O.
    MS-Off Ver
    MS 365
    Posts
    59

    If Statement with Vlookup

    Hello,

    I need help and can't seem to find my error.

    The following statement is meant to look for a value in column B, if it matches, do a v-lookup to pickup info from another column.

    =IFERROR(IF('Ad Details'!$B$1:$B$6000=$A21,VLOOKUP(C$4,'Ad Details'!$E:$K,7,FALSE), ""), "")

    When I replace above formula with exact cell to look at, the formula works.

    =IFERROR(IF('Ad Details'!B7=$A21,VLOOKUP(H$4,'Ad Details'!$E:$K,7,FALSE), ""), "")

    Please help!

    Thanks!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: If Statement with Vlookup

    That looks like an ARRAY function, but not sure it will work that way anyway.

    In the 1st formula, you are trying to compare an entire range with 1 cell value

    Maybe try something like IF(countif('Ad Details'!$B$1:$B$6000,$A21=1,...........................
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: If Statement with Vlookup

    That looks like an ARRAY function, but not sure it will work that way anyway.

    In the 1st formula, you are trying to compare an entire range with 1 cell value

    Maybe try something like IF(countif('Ad Details'!$B$1:$B$6000,$A21=1,...........................

  4. #4
    Registered User
    Join Date
    02-18-2010
    Location
    T.O.
    MS-Off Ver
    MS 365
    Posts
    59

    Re: If Statement with Vlookup

    I've attached the excel file.

    Desperately need a solution here! Basically, need to transport data in the "Ad Details" to the Calendar View" tab.

    thanks again!
    Attached Files Attached Files
    Last edited by greentea; 08-19-2014 at 09:36 PM.

  5. #5
    Registered User
    Join Date
    02-18-2010
    Location
    T.O.
    MS-Off Ver
    MS 365
    Posts
    59

    Re: If Statement with Vlookup

    Still looking for help!

  6. #6
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: If Statement with Vlookup

    Use COUNTIF as your triggering event for the VLOOUP:

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: If Statement with Vlookup

    hi,

    Is this help full .
    Punnam Ravi
    Attached Files Attached Files

  8. #8
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: If Statement with Vlookup

    Try the below array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  9. #9
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: If Statement with Vlookup

    Hi,

    Please see the attached file. I have used an array formula here, you need to press CTRL+SHIFT+ENTER to confirm.

    =IFERROR(INDEX('Ad Details'!$A$1:$I$18,MATCH($A6&C$4,'Ad Details'!$A$1:$A$18&'Ad Details'!$C$1:$C$18,0),9),"")
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-18-2010
    Location
    T.O.
    MS-Off Ver
    MS 365
    Posts
    59

    Re: If Statement with Vlookup

    Hi Everyone,

    Big thank you for all your suggestions! I couldn't wait last night so I concatenated the rows and did a lookup into my calendar. It seems to work

    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  2. Using a VLOOKUP and IF statement inside an IF statement
    By Isis3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2011, 07:04 PM
  3. If with Vlookup with And statement
    By opeyemi1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2010, 05:46 PM
  4. Vlookup with If statement
    By [email protected] in forum Excel General
    Replies: 5
    Last Post: 01-26-2006, 09:15 PM

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