+ Reply to Thread
Results 1 to 6 of 6

How to modify this IF formula

  1. #1
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    How to modify this IF formula

    Here's the working formula.

    Please Login or Register  to view this content.
    Sometimes the INDEX part of this formula will return a blank. In that event I want to search the AccountList!:K:K for a match instead.

    I tried to embed an IF formula like this but I get an error.

    Please Login or Register  to view this content.
    Any idea what I did wrong?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,736

    Re: How to modify this IF formula

    What error do you get? If it is #N/A then you will need to check to see if A3 is in column K of the AccountList sheet.

    You can use IFERROR to do this if your version of Excel is 2007 or later.

    Hope this helps.

    Pete

  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,939

    Re: How to modify this IF formula

    Also, probably, the error is coming from the MATCH, not the INDEX?
    Break the components down to see where the cause is.
    Either way, you could probably shorten by using a series of IFERROR's with the MATCH's inside 1 INDEX

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to modify this IF formula

    I don't get INDEX to return a blank, I get a 0 and this seems to work in my experiments:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  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: How to modify this IF formula

    Quote Originally Posted by djarcadian View Post
    Sometimes the INDEX part of this formula will return a blank.
    Quote Originally Posted by newdoverman View Post
    I don't get INDEX to return a blank, I get a 0
    Might be that the OP's indexed range contains formulas that sometimes return formula blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to modify this IF formula

    That is entirely possible. I was just working from my own worksheet and didn't take a guess. The OP could substitute for the 0 with ""

+ 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. Excel 2003 formula - modify one cell, another cell track the modify date
    By baby0596cw in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-06-2014, 12:55 PM
  2. Modify IF Formula
    By oskar270 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 05-16-2013, 04:55 PM
  3. [SOLVED] How to modify the sum formula SUM(A5:E5)/5
    By nur2544 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2012, 02:20 PM
  4. using IF to modify a formula
    By Martindelica in forum Excel General
    Replies: 3
    Last Post: 02-24-2008, 04:51 PM
  5. [SOLVED] Modify A formula
    By carl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2006, 01:50 PM
  6. [SOLVED] Modify a formula
    By Eintsein_mc2 in forum Excel General
    Replies: 3
    Last Post: 09-18-2005, 01:05 AM
  7. [SOLVED] modify formula
    By ParTeeGolfer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2005, 07:06 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