+ Reply to Thread
Results 1 to 5 of 5

Make formula look in a different column if a 0/blank is returned

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Hatfield, England
    MS-Off Ver
    Excel 2007
    Posts
    19

    Make formula look in a different column if a 0/blank is returned

    Hi all,

    I am trying to figure out how to modify a formula. At the moment i have

    Please Login or Register  to view this content.
    Which is looking in column 8 in a seperate sheet in my workbook. on occasion there is no data in column 8, and as such the formula returns a 0.
    Is there any way of getting the formula to search in column 9 if a 0 is returned.

    Hope this is clear.

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Make formula look in a different column if a 0/blank is returned

    HI Adx,

    i think this would do

    =IF(VLOOKUP(A3,INDIRECT(F3),8,FALSE)=0,VLOOKUP(A3,INDIRECT(F3),9,FALSE),VLOOKUP(A3,INDIRECT(F3),8,FALSE))
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Make formula look in a different column if a 0/blank is returned

    try this

    Please Login or Register  to view this content.
    untested
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Registered User
    Join Date
    06-03-2011
    Location
    Hatfield, England
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Make formula look in a different column if a 0/blank is returned

    This looks like its working, thank you so much Amy!

    Quote Originally Posted by amy_d2 View Post
    HI Adx,

    i think this would do

    =IF(VLOOKUP(A3,INDIRECT(F3),8,FALSE)=0,VLOOKUP(A3,INDIRECT(F3),9,FALSE),VLOOKUP(A3,INDIRECT(F3),8,FALSE))

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Make formula look in a different column if a 0/blank is returned

    Here's another one:

    =VLOOKUP(A3,INDIRECT(F3),8+(VLOOKUP(A3,INDIRECT(F3),2,0)=0),0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 10
    Last Post: 08-19-2013, 11:33 AM
  2. Replies: 3
    Last Post: 06-19-2012, 12:16 PM
  3. How to make error formula (#NA) to blank column
    By Shermaine2010 in forum Excel General
    Replies: 7
    Last Post: 09-29-2011, 08:24 PM
  4. SUMPRODUCT - where range has formula returned "" blank cells
    By Paul Sheppard in forum Excel General
    Replies: 4
    Last Post: 08-16-2011, 12:49 PM
  5. Make returned cells that is =<0 to empty
    By abrunstad in forum Excel General
    Replies: 1
    Last Post: 03-26-2009, 12:26 PM

Tags for this Thread

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