+ Reply to Thread
Results 1 to 8 of 8

Match function returns #VALUE!

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Denver, CO
    MS-Off Ver
    Office 2007
    Posts
    4

    Match function returns #VALUE!

    I'm trying to find out when the first non-zero occurs. To make it even simpler, I reduce it to just the first time a positive number occurs. Still whatever I do I get a #VALUE.

    When using the function wizard - it will tell me what the answer will be. I hit [OK] and get the #VALUE! again.

    =MATCH(TRUE,A1:D1>0,0)


    Excel 2007

    Thanks,

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

    Re: Match function returns #VALUE!

    Enter that formula as an array formula.

    Array formulas are entered differently than a regular formula. After you type in a regular formula you hit the ENTER key. With an array formula you *must* use a combination of keys. Those keys are the CTRL key, the SHIFT key and the ENTER key. That is, hold down both the CTRL key and the SHIFT key then hit the ENTER key.

    When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you *must* use the key combo to produce them. Also, anytime you edit an array formula it *must* be re-entered as an array using the key combo.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Match function returns #VALUE!

    Hi and welcome to the forum

    That is an array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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
    Registered User
    Join Date
    01-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Match function returns #VALUE!

    I've had this problem before, here's my solution. Hope it works for you.
    =MATCH(TRUE,INDEX($A$1:$D$1>0,0),0)

    also this is NOT an array formula
    Last edited by drstrings; 09-10-2013 at 04:33 PM.

  5. #5
    Registered User
    Join Date
    01-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Match function returns #VALUE!

    I've had this problem before, here's my solution. Hope it works for you.
    =MATCH(TRUE,INDEX($A$1:$D$1>0,0),0)

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Match function returns #VALUE!

    Try this array formula entered with CTRL + SHIFT + ENTER

    =MATCH(TRUE,ISNUMBER(1/A1:D1),0)

  7. #7
    Registered User
    Join Date
    09-10-2013
    Location
    Denver, CO
    MS-Off Ver
    Office 2007
    Posts
    4

    Re: Match function returns #VALUE!

    Thank you. I also like the different ways INDEX, ISNUMBER methods.

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

    Re: Match function returns #VALUE!

    You're welcome. We appreciate the feedback!

+ 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 function returns result #N/A
    By morrisondan in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-22-2013, 03:01 PM
  2. Match function only returns 1st match
    By jcorcoran in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 08:38 PM
  3. Index, Match,Match returns #REF or 0
    By Jogier505 in forum Excel General
    Replies: 2
    Last Post: 02-22-2011, 04:56 PM
  4. Replies: 2
    Last Post: 03-16-2009, 01:09 PM
  5. Sum Multiple Match Returns
    By slm020 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2006, 07:31 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