+ Reply to Thread
Results 1 to 19 of 19

What's wrong with this formula?

  1. #1
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    What's wrong with this formula?

    =IF(F17>F18;B17;B18)+IF(F17=F18;A17;A18)

    It says #VALUE!

  2. #2
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: What's wrong with this formula?

    IF function, one of the logical functions, to return one value if a condition is true and another value if it's false.

    ‘=IF(logical_test,[value_if_true],[value_if_false])’

    =IF(F17=>F18;B17;B18 <----logical_test,...........)

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: What's wrong with this formula?

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    06-09-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: What's wrong with this formula?

    I replicated this quickly just now and found no errors.

    The only thing I had to change was the ";" to "," as I am not sure if it is Excel version or not but I use "," in my formulas.

  5. #5
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Yeah, here it is.

    (My workbook is in Danish and I can't change it, but tell me if you get it in danish and I'l translate for you)

  6. #6
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by ladbroke View Post
    I replicated this quickly just now and found no errors.

    The only thing I had to change was the ";" to "," as I am not sure if it is Excel version or not but I use "," in my formulas.
    It unfortunatately didnt solve the problem, thanks anyways. But what version do you use.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by thomexcel View Post
    Yeah, here it is.

    (My workbook is in Danish and I can't change it, but tell me if you get it in danish and I'l translate for you)
    Here it should be
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by Norie View Post
    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    The artbook is a simulation of an upcoming tournmaent, I am trying to learn some formulas for Excel, if you would want to know what the names are.

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: What's wrong with this formula?

    Which cell is the problem formula in?

    By the way, I'm in the UK and the formulas 'translated' just fine, ie ; was replaced with ,.

  10. #10
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by Norie View Post
    Which cell is the problem formula in?

    By the way, I'm in the UK and the formulas 'translated' just fine, ie ; was replaced with ,.
    Section 1 H16

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: What's wrong with this formula?

    Just found a formula on the sheet named 'Section 1' in cell H16 that's returning #VALUE! - when evaluating the formula it appears it's pulling a text value from B18.

  12. #12
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by Norie View Post
    Just found a formula on the sheet named 'Section 1' in cell H16 that's returning #VALUE! - when evaluating the formula it appears it's pulling a text value from B18.
    Yes, I want Excel to show the name of the winner of the match between Benoit Paire & Tommy Hass. The A18 is that value I want to show before I type the results in the cells for the match between Benoit Paire & Tommy Hass. If that makes sense.

  13. #13
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: What's wrong with this formula?

    If you want to concatentate text use & instead of +.

  14. #14
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by Norie View Post
    If you want to concatentate text use & instead of +.
    Thanks, but it didn't fix the problem precisely, I want it to show nothing if F17 is the same as F18, but if F17 is bigger than F18 I want it to show the value of B17, and if F18 is bigger than F17 I want it show the value of B18.

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,732

    Re: What's wrong with this formula?

    Withdrawn by FR.
    Dave

  16. #16
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by FlameRetired View Post
    Both uploads work at my end and return correct results.
    No #VALUE! Error?

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,732

    Re: What's wrong with this formula?

    Correct. No #VALUE! error, but I hadn't refreshed before seeing this:
    Quote Originally Posted by Norie View Post
    Just found a formula on the sheet named 'Section 1' in cell H16 that's returning #VALUE! - when evaluating the formula it appears it's pulling a text value from B18.

  18. #18
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: What's wrong with this formula?

    If you want to work with text values then you need to use the & string operator instead of the arithmetic + operator, otherwise you'll get the error(s) you are describing.

  19. #19
    Registered User
    Join Date
    04-16-2017
    Location
    Aarhus, Denmark
    MS-Off Ver
    2010
    Posts
    74

    Re: What's wrong with this formula?

    Quote Originally Posted by Norie View Post
    If you want to work with text values then you need to use the & string operator instead of the arithmetic + operator, otherwise you'll get the error(s) you are describing.
    Yeah I use the & it still dosen't work 100 %, but I can just go with what I tried first. Thanks for all your help.

+ 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. what is the wrong of formula
    By hktom in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-06-2015, 05:44 PM
  2. [SOLVED] Wrong formula
    By hktom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2015, 03:54 AM
  3. What is wrong with this formula?
    By xena08 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2013, 10:28 AM
  4. [SOLVED] What is wrong with my formula?
    By chaddug in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2012, 01:19 PM
  5. Help please,what is wrong with this formula?
    By Mare in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 12-13-2005, 07:12 AM
  6. What is wrong with this formula?
    By Darren in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-26-2005, 09:05 AM
  7. What is Wrong with this formula please?
    By Issam LAdki in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-09-2005, 11:06 AM

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