+ Reply to Thread
Results 1 to 4 of 4

IF statement - 2 features + action if cell is blank

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    IF statement - 2 features + action if cell is blank

    Hi guys,

    I am providing my weight loss spread sheet here:


    https://docs.google.com/spreadsheets...it?usp=sharing


    I have a formula

    =IF(K22>J22,"you have put on weight this week, try to get back on track next week!",IF(K22<J22,"you have lost weight this week, keep it up!",""))

    I want to add something that says if cell K22 is blank, then return: You have not input a target! Can someone help me with adding this to my formula above please?

    Thank you!
    Thanks,

    R.



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

    Re: IF statement - 2 features + action if cell is blank

    Hi Ray,

    Try this:

    =IF(K22="","You have not input a target!",IF(K22>J22,"you have put on weight this week, try to get back on track next week!",IF(K22<J22,"you have lost weight this week, keep it up!","")) )

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: IF statement - 2 features + action if cell is blank

    Appreciated Pete, works a charm!

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

    Re: IF statement - 2 features + action if cell is blank

    You're welcome. Note that the final "" will only occur if the two weights are the same for consecutive weeks, so you could put something like "no change this week" rather than have it blank.

    Pete

+ 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] If Statement when Cell is not Blank
    By jdopal1 in forum Excel General
    Replies: 8
    Last Post: 07-10-2017, 08:06 AM
  2. [SOLVED] Blank Cell - IF Statement
    By jeptik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-15-2016, 03:52 PM
  3. [SOLVED] If cell a2 is blank if statement
    By travis.cook21 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2016, 11:07 AM
  4. If statement on blank cell
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 03-21-2015, 04:33 AM
  5. IF Statement to leave cell blank if multiple cells are all blank
    By sweeteri in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2014, 12:02 PM
  6. [SOLVED] Do more than on action if and IF statement is true
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-09-2012, 04:42 AM
  7. [SOLVED] If statement that copies text from a separate worksheet, or if blank, leaves cell blank.
    By barleycorn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2012, 12:30 PM

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