+ Reply to Thread
Results 1 to 7 of 7

Looking for a multiple IF statement

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Angry Looking for a multiple IF statement

    Let's say there are 3 columns. Column A is blank, B either contains 1, 2, 3, 4, or something else, and C will have either contain "pool" or nothing.
    I'm looking for some kind of statement that will do the following for column A:
    if col B is not 1, 2, 3, or 4, then print "number"
    if col C contains the text "pool" then print "pool"

    So, basically, I want Column A to print "number" if the numbers '1', '2', '3', or '4' don't appear in column B, and I want it to print "pool" if the cell in Column C contains the word "pool" If Col B and Col C don't contain either of the values, then print no information at all.

    Thoughts?
    Last edited by JBClaypool; 04-24-2014 at 02:07 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Looking for a multiple IF statement

    Try

    =IF(NOT(ISNUMBER(B1)),"number",IF(C1="pool",C1,""))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Looking for a multiple IF statement

    Thank you. It's a good start, but the "pool" part doesn't work. There are times when "pool" is in the cell, but there are other words, too. It could contain something like "jerry's pool" frequently.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Looking for a multiple IF statement

    In that case..

    =IF(NOT(ISNUMBER(B1)),"number",IF(ISNUMBER(SEARCH("pool",C1)),"pool",""))

  5. #5
    Registered User
    Join Date
    04-24-2014
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Looking for a multiple IF statement

    This is what I'm looking for. Who knew it was so simple! I feel so... d'oh!
    Thanks!

  6. #6
    Registered User
    Join Date
    04-24-2014
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Looking for a multiple IF statement

    hey, if there is existing text in the cell that I am entering the code in, is there a way that text can stay?

    In other words, if "cement" is in one of the cells in Col A, is there a way to keep "cement" in there even if "pool" or "1, 2, 3, or 4" is in Col B or C?

  7. #7
    Registered User
    Join Date
    04-24-2014
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Cool Re: Looking for a multiple IF statement

    I figured out a nice little way to get it to work

    IF(ISNUMBER(SEARCH("cemenet",a:a)),"cement",IF(NOT(OR(b:b=1,b:b=4,b:b=6,b:b="none",M:M="")),"work",VLOOKUP(c:c,Sheet1!A:C,2,FALSE)))

    Thanks for showing me the way!

+ 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. Replies: 1
    Last Post: 08-06-2013, 09:07 PM
  2. Replies: 18
    Last Post: 03-24-2013, 04:20 PM
  3. Ok I admit it!
    By squiggler47 in forum The Water Cooler
    Replies: 2
    Last Post: 05-22-2010, 07:56 AM
  4. Replies: 0
    Last Post: 04-14-2005, 10:13 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