+ Reply to Thread
Results 1 to 23 of 23

If formula not returning correct results

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    If formula not returning correct results

    hi all

    im just a little stuck im using this formula

    =IF(B5<>"",IF(D5>=0.01,D5,IF(F5>=0.01,F5,"")))

    basically if there is a total in "D5" then give total in "D5", if not it should give me the total in "F5" otherwise a blank

    instead its returning "FALSE"
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    Try this:

    =IF(B5="","",IF(D5>=0.01,D5,IF(F5>=0.01,F5,"")))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: If formula not returning correct results

    Try it this way in E5:

    =IF(D5>=0.01,D5,IF(F5>=0.01,F5,""))

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: If formula not returning correct results

    @AliGW Thank you - That gets rid of the "False" but if "D5" is blank it should give me total in "F5" but it just returns a blank but thank you

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    This?

    =IF(B6="","",D6&F6)

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: If formula not returning correct results

    Ali,

    that would return the numbers as text values.

    Pete

  7. #7
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: If formula not returning correct results

    @AliGW very close only thing it omits the 00 after the decimal

    example total in "D5" is 600.00 it returns 600

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    Try this:

    =IF(B5="","",D5+F5)

  9. #9
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: If formula not returning correct results

    @pete_uk thank you but that returns a blank

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    See post #8.

  11. #11
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: If formula not returning correct results

    @AliGW when if i put if 600.01 it returns 600.01 but if i put in 600.00 it returns 600 not been a pain but i need it to show 600.00 as where im working all figures including the .00 have to be shown

  12. #12
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: If formula not returning correct results

    Quote Originally Posted by AliGW View Post
    See post #8.

    returns #VALUE!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    No, it doesn't.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    5
    worker 1
    €50.00
    €50.00
    6
    worker 2
    €100.00
    €100.00
    7
    8
    9
    10
    11
    12
    13
    14
    Sheet: Sheet1

  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: If formula not returning correct results

    Quote Originally Posted by Patcheen View Post
    @pete_uk thank you but that returns a blank
    I don't know why my first formula should return a blank for you, but you can try it this way in E5:

    =IF(D5<>"",D5,IF(F5<>"",F5,""))

    then copy down.

    Hope this helps.

    Pete

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    See attached.
    Attached Files Attached Files

  16. #16
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: If formula not returning correct results

    Quote Originally Posted by AliGW View Post
    No, it doesn't.
    Ali,

    if D or F contain formulae which return "" if not satisfied, then D5+F5 will return a #VALUE.

    Pete

  17. #17
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: If formula not returning correct results

    Sorted - Thanks guys as usual ye are brill thank you very much

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    OK, well that's fixable:

    =IFERROR(IF(B5="","",D5+F5),"")

  19. #19
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: If formula not returning correct results

    Well, not quite. If B5 is not empty you would expect a value from either D5 or F5, but if one of those contain a formula-blank then the result would be a blank from D5+F5.

    Pete

  20. #20
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: If formula not returning correct results

    Thanks for the rep, Patcheen.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    Quote Originally Posted by Pete_UK View Post
    Well, not quite. If B5 is not empty you would expect a value from either D5 or F5, but if one of those contain a formula-blank then the result would be a blank from D5+F5.

    Pete
    I'm not getting this, sorry.

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    Thanks for the rep. Please mark the thread as solved (although I'm not sure which solution worked for you - probably Pete's).

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: If formula not returning correct results

    The OP eventually used this, he tells me:

    =IF(D5="",F5,D5)

+ 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. Lookup formula returning some correct results but not others
    By elliegoldman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2017, 05:51 PM
  2. [SOLVED] help with datedif formula nt returning the correct results
    By bugdout in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-23-2016, 11:31 AM
  3. [SOLVED] Index Match formula not returning correct results
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-30-2015, 02:59 PM
  4. Percentile Function is not returning correct results
    By walters in forum Excel General
    Replies: 1
    Last Post: 03-10-2015, 10:52 AM
  5. [SOLVED] SUMPRODUCT formula not returning correct results
    By CityInspector in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:04 PM
  6. VLOOKUP not returning correct results
    By Lea724 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2011, 02:38 AM
  7. [SOLVED] SQL Query not returning correct results
    By Stephen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2006, 08:25 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