+ Reply to Thread
Results 1 to 6 of 6

An INDEX MATCH formula has blank cell - need to ignore or delete

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    2003 & 2010 - Excel, Word, PP, etc.
    Posts
    26

    An INDEX MATCH formula has blank cell - need to ignore or delete

    Hello,

    I've spent several hours searching for a solution and couldn't quite find the answer.

    My workbook has two worksheets, the Invoice Template and the Customer Data.

    On the Invoice Template, there is a drop-down used to select the customer. When a customer is selected, I have an INDEX MATCH formula to populate the address information into the cells below. This works fine, except if the customer doesn't have any data in the "Attn" column of the Customer Data worksheet. I can make it blank, but what I would really like is for the blank cell to either be ignored and filled with the next cell, or deleted and cells shift up (automatically when the customer is selected).

    Please let me know if you need any additional information.

    Thanks!
    Invoice Test.xlsm

  2. #2
    Forum Contributor Mayda89's Avatar
    Join Date
    09-13-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: An INDEX MATCH formula has blank cell - need to ignore or delete

    Hi,

    you can use the iferror function.
    ex
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    2003 & 2010 - Excel, Word, PP, etc.
    Posts
    26

    Re: An INDEX MATCH formula has blank cell - need to ignore or delete

    I probably should have put the formula I am using in my post. I already have an "IFERROR" formula that returned "0." I used the modified formula from Mayda89, which returns a blank cell. But, I don't want 0, blank, etc. I want the blank cell gone and the next row of data to take it's place. In other words, I want the address to read:

    Customer [from column1 of data]
    Address [column3]
    City, State ZIP [column4]

    NOT:

    Customer [column1]
    Blank Space [column2]
    Address [column3]
    City, State ZIP [column4]


    The reason there is a blank space is that sometimes the customer will have two address lines, like an "Attn:" or Suite number, Box number, etc. Sometimes not (resulting in blank). For example, if you choose "MACY'S" from the dropdown, the space is not blank.


    Hope that helps explain and if anyone knows how to solve this I would love to hear from you. Thanks!

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: An INDEX MATCH formula has blank cell - need to ignore or delete

    Try this
    In a10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In a11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached

    Hope this helps
    Attached Files Attached Files
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    2003 & 2010 - Excel, Word, PP, etc.
    Posts
    26

    Re: An INDEX MATCH formula has blank cell - need to ignore or delete

    Thank you, that solves the problem. I will close this thread.

    Really appreciate the response and time.

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: An INDEX MATCH formula has blank cell - need to ignore or delete

    You are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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