+ Reply to Thread
Results 1 to 4 of 4

Conditional vlookup error

  1. #1
    Registered User
    Join Date
    08-28-2018
    Location
    San Francisco, California
    MS-Off Ver
    365; excel 2016
    Posts
    17

    Conditional vlookup error

    I need to calculate $$$ costs in column H. In H 4, there is a formula to determine if "hr " is selected, then need to also select choice in column G... This results in $$ value in college H. But in the event that any other selection in column F (ea,cy,ls,m) I get value error in column H. Instead I need a "-" result. I believe I need a conditional vlookup but figure out how to combine.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Conditional vlookup error

    It's just
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-28-2018
    Location
    San Francisco, California
    MS-Off Ver
    365; excel 2016
    Posts
    17
    This only solves if hr is selected. I am trying to solve for if the other drop down selections are chosen. It should return "-", not #value
    Last edited by AliGW; 12-05-2020 at 02:03 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Conditional vlookup error

    Try this:

    =IF(OR(F5="ea",F5="cy",F5="ls",F5="m"),"-",VLOOKUP(G5,'Employer & Labor Costs breakout'!J6:K21,2,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Vlookup Error - unable to get the vlookup property of the worksheetfunction class
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2019, 02:59 PM
  2. [SOLVED] application vlookup error runtime error 1004, unable to get the vlookup property of the.."
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 12-05-2018, 12:03 PM
  3. Concatenate error across 2 worksheets with vlookup error
    By COGICPENNY in forum Excel General
    Replies: 2
    Last Post: 11-30-2015, 07:56 PM
  4. How to error trap a vlookup that returns an error or #N/A
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 12:01 PM
  5. [SOLVED] lookup - if(is error(vlookup and error messages meanings
    By grphillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-18-2013, 07:03 PM
  6. Conditional Formatting - Run Time Error '13' Type Mismatch Error
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2011, 07:37 PM
  7. Conditional Format & Vlookup Error!
    By fugro in forum Excel General
    Replies: 12
    Last Post: 02-21-2011, 11:53 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