+ Reply to Thread
Results 1 to 2 of 2

Wanting an IF function within a LOOKUP function?

  1. #1
    Registered User
    Join Date
    05-05-2018
    Location
    New Zealand
    MS-Off Ver
    2016
    Posts
    1

    Wanting an IF function within a LOOKUP function?

    Hi there, I am just seeking some help - I get a bit confused with functions sometimes.
    I have this lookup function in cell J5 which works as intended - it looks up the second worksheet for the last entry of Bob's Bakery and the returns the associated date.
    However some places won't have anything in the business column if they aren't a business - I'd like to try match the business column and return the value, but then if the business column is empty for it to search the name column and try and return the data associated with that.

    b0fe45dc25f98f4abdc5d1d37b04c3af.png
    5af55ff7900a43d81f68335816e763d6.png

    Sorry if I didn't word it very clearly haha.
    Any help would be appreciated.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Wanting an IF function within a LOOKUP function?

    Maybe like this:

    =IFERROR(LOOKUP(2;1/('Cleaning Record'!B:B=Sheet1!A5);'Cleaning Record'!B:B);
    LOOKUP(2;1/('Cleaning Record'!B:B=Sheet1!B5);'Cleaning Record'!B:B))

+ 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. Time Intervals, Ranges, IF function, Lookup Function
    By HDTV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2014, 03:52 PM
  2. Combining a IF function and lookup function
    By Trottlips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2014, 05:34 PM
  3. Need help with "match" function or am I wanting the IMPOSSIBLE?
    By AHOLB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2013, 01:10 PM
  4. Replies: 2
    Last Post: 06-25-2013, 08:54 AM
  5. Replies: 1
    Last Post: 08-20-2012, 01:13 PM
  6. [SOLVED] Nested IF Function or LOOKUP Function
    By rstephen in forum Excel General
    Replies: 4
    Last Post: 07-03-2012, 09:42 PM
  7. Wanting a Value of Nothing as Part of an IF function
    By Bantymom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2010, 01:35 AM

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