+ Reply to Thread
Results 1 to 6 of 6

1, 2, or 3=1, blank is left blank

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    TN, USA
    MS-Off Ver
    2010
    Posts
    2

    1, 2, or 3=1, blank is left blank

    C8 is either blank, or has a 1,2,or 3 in it. I want R8 to populate with either a 1 (for 1,2, or 3) or be left empty.

    I'm self taught and have figured out how to make one number populate the way I want, just not all 3.

    Thanks so much!

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

    Re: 1, 2, or 3=1, blank is left blank

    How about this in R8:

    =IF(C8="","",1)

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: 1, 2, or 3=1, blank is left blank

    Since C8 has only those 4 possibilities,

    =IF(ISNUMBER(C8), 1,"")

    or even
    =IF(C8, 1, "")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: 1, 2, or 3=1, blank is left blank

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    04-25-2017
    Location
    TN, USA
    MS-Off Ver
    2010
    Posts
    2

    Re: 1, 2, or 3=1, blank is left blank

    Thanks so much! Solved with a quickness! Y'all are great!

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: 1, 2, or 3=1, blank is left blank

    Orrrrrrrrr
    =IF(C8=1, 1, If(C8=2,1, IF(C8=3, 1, "")))

    or

    IF(C8<>0, 1, "")

    or

    IF(OR(C1={1,2,3}),1,"")

+ 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. Find non-blank cell to the left
    By mpv99 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2015, 11:03 PM
  2. [SOLVED] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  3. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  4. [SOLVED] left padding + blank
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2006, 06:25 PM
  5. left padding + blank
    By Alex in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2006, 06:25 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