+ Reply to Thread
Results 1 to 6 of 6

Use a formula if my IF function returns a false?

  1. #1
    Registered User
    Join Date
    06-08-2019
    Location
    Oregon, USA
    MS-Off Ver
    Pro Plus 2016
    Posts
    4

    Use a formula if my IF function returns a false?

    Good morning,

    I've figured out how to use the IF function to turn a cell blank like this if true: =IF(AP13="", "","yes")
    I'm trying to do something like this : =IF(AP13="", "","=A1+A2+A3")
    Or I could put the =A1+A2+A3 formula in another cell and reference that cell, but I can't figure out how to get it to reference another cell as a returned value either.
    Any help here would be great. I doesn't need to be an IF function. I'm just trying to turn the cell (G1) blank if the reference cell (AP13) is blank. If the reference cell (AP13) is not blank then I need my original value, from the original formula (from a separate cell if need be), to fill G1.
    All cell references in this post are just for example.

    Thanks so much,
    Lucas

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

    Re: Use a formula if my IF function returns a false?

    Welcome to the forum!

    It's as simple as this:

    =IF(AP13="","",A1+A2+A3)
    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
    Registered User
    Join Date
    06-08-2019
    Location
    Oregon, USA
    MS-Off Ver
    Pro Plus 2016
    Posts
    4

    Re: Use a formula if my IF function returns a false?

    Wow,

    Thank you so much AliGW! If you have time, do you mind explaining how you got that, or why it works? I googled for a good hour and didn't find anything.
    That's so quick you'd think that would be included in the little helper box that shows up while filling out a function.

    Thanks again,
    That was awesome,
    Lucas

  4. #4
    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,288

    Re: Use a formula if my IF function returns a false?

    Your basic IF statement, as you know already, goes like this:

    =IF(test,value_if_true,value_if_false)

    So, your test is AP13="" (AP13 is blank). If it evaluates to TRUE, it returns "" (blank), but if it evaluates to FALSE, it runs the formula in the value_if_false section of the statement (A1+A2+A3).

    Hope this helps.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Last edited by AliGW; 06-08-2019 at 12:05 PM. Reason: Typo

  5. #5
    Registered User
    Join Date
    06-08-2019
    Location
    Oregon, USA
    MS-Off Ver
    Pro Plus 2016
    Posts
    4

    Re: Use a formula if my IF function returns a false?

    Oh I see, I thought there was extra set of "" in the formula you gave me so I thought there was a third value after the true/false fill-ins. It's unbelievable how easy this was and that I couldn't find any reference on how to use a formula a formula as the returned value in all the searching I did. So how would I know not to put "" around the A1+A2 formula?

    Thanks again,
    Lucas

  6. #6
    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,288

    Re: Use a formula if my IF function returns a false?

    You don't want to return text, so don't put the "" round the formula. You want the result of the formula.

    https://www.pcworld.com/article/2971...t-started.html

+ 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. IF Function returns False instead of 0
    By BeeGee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 12:05 PM
  2. [SOLVED] IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  3. IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2005, 12:05 PM

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