+ Reply to Thread
Results 1 to 6 of 6

Index - Match - ROWS formula not working?

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Index - Match - ROWS formula not working?

    Hi
    i tried to do an index(array(match) formula, however the result always gives me an error (#NA)

    here's the formula i entered:

    =INDEX(Table!$A$1:$D$9,MATCH(C1,Table!$A$1:$A$9,0),MATCH(B1,Table!$A$1:$D$1,0))

    the column match formula works fine, however the row match formula does not

    i have attached the file i was working on, and the errors are highlighted in yellow

    can i please get some guidance on this? have formatted the figures to numbers & text (and vice versa) but it still will not work...

    thanks in advance

    Marvin
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Index - Match - ROWS formula not working?

    Hi Marvin,

    It looks like the data in Col C of the Summary tab was Text and not numbers. See the attached that seems to work correctly.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,698

    Re: Index - Match - ROWS formula not working?

    It looks like the problem is related to the fact that your numbers are stored as text. If you convert the numbers in Summary!C to numbers then it works. See attached.

    I'm afraid I don't know why it doesn't work because MATCH works perfectly well on matching text.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    07-27-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Index - Match - ROWS formula not working?

    Hi
    thanks for the replies guys.. it seems like the issue is the formatting indeed

    i tried to reformat the original sheet where i got the data from, but it did not work as i expected as the figures are derived from formulas. tried to change the format cell of these formula to "numbers with 2 decimal places", and the formatting did not change the figures?

    what did i do wrong here? here's the new attached files with the formulas which i attempted to do a cell reformat. if you could tell me how to format the yellow items for the formula to work that would be great!!

    thanks

    Marvin
    Attached Files Attached Files

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,698

    Re: Index - Match - ROWS formula not working?

    Your formulas in column F are returning a text string.

    =IF(ISNUMBER(SEARCH("19",B2)),"19".....

    You are returning the string 19, not the number 19. Formatting the cell to be a number is ignored if the content is text.

    Select column F, then do a find & replace to change all double quotes to the empty string. The SEARCH will still work because Excel will take the number and automatically convert it to text to do the search.

    Are the strings in column B a consistent format? That is, do they always start with a "$" and a number? If so, you could use this simpler formula in column F:

    =MID(B1,2,FIND(" ",B1)-2)+0

  6. #6
    Registered User
    Join Date
    07-27-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Index - Match - ROWS formula not working?

    All good Sir!!! thanks to the both of you! !Rep!!

+ 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