+ Reply to Thread
Results 1 to 12 of 12

IF THEN ELSE formula statement + ISBLANK??

  1. #1
    Registered User
    Join Date
    04-26-2023
    Location
    Topeka, Kansas, USA
    MS-Off Ver
    Office 365
    Posts
    6

    IF THEN ELSE formula statement + ISBLANK??

    Hello, can I make a formula for 3 blocks of executable statements? (I think this is the right wording.) I know that an IF THEN ELSE statement is 2 blocks. I have that part of the formula functioning properly, but my problem is that I want to add that if any of 3 different cells is blank, leave the cell blank. Here is the IF THEN formula that is functioning:

    =IF(OR(K5<=K1,L5<=L1,M5<=M1), "Y", "N")

    How do I add another executable statement to also command that if all 3 cells (K5,L5, M5) are blank= blank?

    The problem is that the current formula is yielding a "Y" in all my blank rows. Anyone? Thank you in advance!

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF THEN ELSE formula statement + ISBLANK??

    Try this,
    =IF(K5&L5&M5="","",IF(OR(K5<=K1,L5<=L1,M5<=M1), "Y", "N"))

  3. #3
    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,903

    Re: IF THEN ELSE formula statement + ISBLANK??

    Welcome to the forum.

    Try this:

    =IF(OR(K5="",L5="",M5=""),"",IF(OR(K5<=K1,L5<=L1,M5<=M1), "Y", "N"))

    This is called 'nesting'.
    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.

  4. #4
    Registered User
    Join Date
    04-26-2023
    Location
    Topeka, Kansas, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: IF THEN ELSE formula statement + ISBLANK??

    xxxxxxxxxx
    Last edited by cosmosipper; 04-27-2023 at 08:52 AM.

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

    Re: IF THEN ELSE formula statement + ISBLANK??

    @cosmosipper

    What is your feedback? Please don't delete the content of posts in this way.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    Registered User
    Join Date
    04-26-2023
    Location
    Topeka, Kansas, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: IF THEN ELSE formula statement + ISBLANK??

    Hello AligW! I apologize- this is my first time posting, and the comment where I put all X's is because originally I replied without the quote and then I couldn't delete it. Newbie alert!

    Thank you kindly for your response! With your formula, I am getting a blank cell only- even when I put data in one of the 3 reference cells, it is still blank.
    Last edited by AliGW; 04-28-2023 at 12:42 AM. Reason: Please do NOT quote unnecessarily!

  7. #7
    Registered User
    Join Date
    04-26-2023
    Location
    Topeka, Kansas, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: IF THEN ELSE formula statement + ISBLANK??

    Quote Originally Posted by windknife View Post
    Try this,
    =IF(K5&L5&M5="","",IF(OR(K5<=K1,L5<=L1,M5<=M1), "Y", "N"))
    Thank you for your assistance! This formula results in defaulting the "Y" to be the ELSE. Any value in the reference cell, whether it is greater than or less than the other reference cell (1), results in a "Y".

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF THEN ELSE formula statement + ISBLANK??

    I don't sure what you want. Could you upload a sample file which describes your expected answer?

  9. #9
    Registered User
    Join Date
    04-26-2023
    Location
    Topeka, Kansas, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: IF THEN ELSE formula statement + ISBLANK??

    Windknife- attachment uploaded. Sorry for being unclear!

    I am doing an audit. There are limits to the amount employee can spend for Breakfast vs lunch vs dinner. I want to enter the receipt amount in the appropriate
    column and receive and autofill another cell stating if this was or was not within policy limits. (The last half of the formula is working for this). However,
    I drag the formula down to all the cells in Column N, they all show "Y".

    In the attachment, the yellow highlight is your suggested formula and the orange highlight is AligW's.

    Thanks so much!
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF THEN ELSE formula statement + ISBLANK??

    Try this,

    N5
    =IF(K5&L5&M5="","",IF(SUMPRODUCT(--(K5:M5<>"")*(K5:M5<$K$1:$M$1))>0, "Y", "N"))

    copied down.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-26-2023
    Location
    Topeka, Kansas, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: IF THEN ELSE formula statement + ISBLANK??

    Fantastic!! Thank you so much!! I was thinking I could just take the resolution from this issue and apply it to my similar "Tip" column (Q) but I'm not sure how. Would you be able to help?

    The policy limit for tips is 20% of the meal price. The formula is working fine, but again, it's entering Y in all rows that have blank reference cells. I need to apply the blank cell conditioning also.

    My formula: =IF(O5>P5, "N", "Y")
    Last edited by AliGW; 04-28-2023 at 12:41 AM. Reason: Please do NOT quote unnecessarily!

  12. #12
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF THEN ELSE formula statement + ISBLANK??

    Try this,

    Q5
    =IF(P5="","",IF(O5>P5, "N", "Y"))

+ 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] isblank with If statement
    By ConfusionSetsIn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2016, 07:11 PM
  2. [SOLVED] if statement, isblank, then
    By KClem in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 07:06 AM
  3. Using OR and ISBLANK in an IF Statement
    By amwbogan1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2013, 09:43 AM
  4. IF Statement with ISBLANK function?
    By Lmsloman in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-21-2013, 06:14 PM
  5. [SOLVED] Nested If Statement - ISBLANK and ISNA in same statement?
    By Janc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2013, 09:00 AM
  6. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  7. IF ISBlank statement
    By orange86 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-06-2008, 11:50 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