+ Reply to Thread
Results 1 to 10 of 10

Add to existing match index formula a formula that will leave cells blank

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Add to existing match index formula a formula that will leave cells blank

    I am using a match index formula to bring over data from the worksheet titled "920" to the "Data" worksheet. Unfortunately, I am unable attach the sample file I created.

    This is the formula that I am using in columns D, E, F and G: =IF(ISNA(MATCH(B2,'920'!$D:$D,0)),0,INDEX('920'!$J:$J,MATCH(B2,'920'!$D:$D,0)))

    Column D has names in it, and the value that it is returning from the 920 worksheet is a "0" and I would like to have it be blank

    Columns E, F and G are dates formatted as dates in both the 920 (source) worksheet and in the Data worksheet where the results appear. When there are dates in the source cells, they show properly, but when there aren't dates in the source spreadsheet, the cells show "1/0/00"

    I don't know where to add the leave blank formula portion, because I have tried numerous variations.

    Thanks!
    Attached Files Attached Files
    Last edited by Hedy; 08-15-2017 at 12:45 PM. Reason: Adding Attachment

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Add to existing match index formula a formula that will leave cells blank

    Unable, or unwilling to attach it??


    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Add to existing match index formula a formula that will leave cells blank

    Is this it???


    =IF(ISNA(MATCH(B2,'920'!$D:$D,0)),"",INDEX('920'!$J:$J,MATCH(B2,'920'!$D:$D,0)))

  4. #4
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Re: Add to existing match index formula a formula that will leave cells blank

    Unfortunately the "" does not work. I will try to follow your instructions and see if I can attach the file to my original post.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Add to existing match index formula a formula that will leave cells blank

    On second thoughts, your formula looks cumbersome in the extreme:

    =INDEX('920'!$J:$J,MATCH(B2,'920'!$D:$D,0))&""

    It's also generally a good idea NOT to use whole column references. Replace with a realistic range, unless you do have 1 million plus rows.

  6. #6
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Re: Add to existing match index formula a formula that will leave cells blank

    I can do that, but it will still yield the "0" for column D and the "1/00/00" for columns F and G. Column E is fine, because it has dates populated in the source worksheet. I was able to add the sample spreadsheet - thank you for your instructions on that!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Add to existing match index formula a formula that will leave cells blank

    Yep. the formula at ~5:

    =INDEX('920'!$C:$C,MATCH(B2,'920'!$D:$D,0))&""

    does what you need.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Add to existing match index formula a formula that will leave cells blank

    And for the columns that return numbers, use this variant:

    =IFERROR(1/(1/INDEX('920'!J:$J,MATCH(B2,'920'!$D:$D,0))),"")

  9. #9
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Re: Add to existing match index formula a formula that will leave cells blank

    Thank you so much! These formulas worked.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Add to existing match index formula a formula that will leave cells blank

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] INDEX-MATCH formula having trouble with blank cells.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-15-2017, 09:59 PM
  2. [SOLVED] Using INDEX MATCH formula to return values that will skip blank cells
    By mark_luke in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2017, 06:11 PM
  3. INDEX MATCH formula, ignore blank cells and define time frames
    By ChildishAlbino in forum Excel General
    Replies: 2
    Last Post: 02-16-2016, 03:16 PM
  4. [SOLVED] Formula to leave cell Blank until cells of formula have data
    By mbauman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2015, 01:28 PM
  5. Replies: 4
    Last Post: 10-21-2015, 11:37 PM
  6. [SOLVED] INDEX/MATCH formula doesn't like blank cells.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2015, 01:40 PM
  7. [SOLVED] If INDEX formula shows 0 then leave cell blank
    By Rwe5ty1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2015, 09:10 AM

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