+ Reply to Thread
Results 1 to 8 of 8

Return x only if value in cell

  1. #1
    Registered User
    Join Date
    02-23-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    28

    Return x only if value in cell

    Hi

    I am running this formula, but it also returns x in the marked cell if the cells i24;i30 are blank.

    Any suggestions on how to leave the marked cell blank if i24;i30 are blank.

    Only if there is a number in one of cells i24;i30 should it return x in the marked cell, if all are blank the marked cell should also stay blank.

    =IF(max(i24:i30)>=0;"x";"")
    Last edited by Jayzon; 03-19-2018 at 05:36 AM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Return x only if value in cell

    You may try something like this...

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Return x only if value in cell

    Try:

    =IF(COUNT(I24:I30);IF(MAX(I24:I30)>=0;"x";"");"")

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,066

    Re: Return x only if value in cell

    Your own formula is almost fine...

    =IF(max(i24:i30)>=0;"x";"")

    just make it

    =IF(max(i24:i30)>0;"x";"")

    instead.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  5. #5
    Registered User
    Join Date
    02-23-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Return x only if value in cell

    You are right thank you very much.

    But this cast of another problem, i am trying to count only cells with the "x". and not any blank cells

    I am trying something like this formula =COUNTIF(C56:AK56,"x") but i keep getting an error.
    Last edited by Jayzon; 03-19-2018 at 06:42 AM.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,066

    Re: Return x only if value in cell

    Shouldn't you have a ; in your formula instead of ,

  7. #7
    Registered User
    Join Date
    02-23-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Return x only if value in cell

    Oups, your just the gift that keeps giving.

    Thanks again.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,066

    Re: Return x only if value in cell

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] How to return a sum only if a specific cell contains data, else return blank cell
    By Teeay5324 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-03-2017, 11:18 AM
  2. [SOLVED] How to return address of the column or cell I select, not just return the value?
    By qzqzjcjp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-18-2014, 04:57 PM
  3. Replies: 12
    Last Post: 10-10-2013, 10:02 AM
  4. [SOLVED] Formula to always return cell below what a vlookup would return
    By KCHEXCEL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 12:57 AM
  5. [SOLVED] IF statement to return 0 if 0 in cell if not return formula
    By CraigieL in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-15-2013, 09:46 AM
  6. Replies: 0
    Last Post: 02-20-2012, 09:43 AM
  7. Replies: 5
    Last Post: 03-12-2010, 07:33 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