+ Reply to Thread
Results 1 to 5 of 5

#VALUE! message for working formula

Hybrid View

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Warks
    MS-Off Ver
    Excel 2013
    Posts
    91

    #VALUE! message for working formula

    I have a formula set up to tell me if a goal is scored in the 2nd half of a match. Cells C2:J2 contain blank cells for me to input goal times for the home team and cells M2:T2 for the away team.

    So for example if the home side won the game 2-1 with goals scored in 25, 33, and 56 minutes then the formula would return a 1 in the target cell. If there was no goal in the 2nd half then a 0 would be returned. The 25 would be in cell C2, 33 in cell M2, and 56 in cell D2. The rest of the cells are left empty.

    The working formula I have is =IF(OR(C2:J2>45,M2:T2>45),1,0) but this is returning #VALUE! in the target cell, if I click the function wizard the formula is working.

    Basically I'm not sure why the formula is returning #VALUE! so if anyone knows why that would be great. I've attached a sample file.

    Sample file.xlsx

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: #VALUE! message for working formula

    I didn't read the problem, but I am guessing the formula should be

    =IF(OR(SUM(C2:J2)>45,SUM(M2:T2)>45),1,0) ?

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: #VALUE! message for working formula

    Hi Consty,

    What you need is an array enter (CTRL-SHIFT-ENTER) and not just ENTER... go in edit mode (F2) then use the array enter...

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: #VALUE! message for working formula

    Your current formula works but it's an "array formula" and, as such, it needs to be "array entered". Select cell with formula, press F2 key to select formula and then hold down CTRL and SHIFT keys while pressing ENTER. If done correctly then curly braces like { and } will appear around the formula

    ....or you can try this non array version

    =0+(SUMPRODUCT((C2:J2>45)+(M2:T2>45))>0)
    Audere est facere

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    Warks
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: #VALUE! message for working formula

    Thanks for all your replies, I used the array option and it's working.

+ 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