+ Reply to Thread
Results 1 to 4 of 4

Nested If and Or fxn for multiple cells

  1. #1
    Registered User
    Join Date
    11-08-2007
    Location
    Western North Carolina
    Posts
    2

    Nested If and Or fxn for multiple cells

    So let me just start off by thanking anyone who responds. Also, if this requires VBA, I know a bit but not as much as I'd like.

    The conundrum (simplified - in reality Columns contain about 2000 rows):

    (A1:A5) are all integers
    (B1:B5) are all integers
    (C1:C5) are all text

    I want to create an IF function that looks at a single cell in Column B and checks all the cells in Column A for that same number. I want the true test to render cells Bx:Cx (x=row number) and the false test to render "none"

    In my mind this worked:

    =IF(A1=OR(A1:A5), B1:C1, "none")

    However, Excel wasn't buying it.

    Thanks again for the help. Cll

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Do you mean?

    =IF(ISNUMBER(MATCH(B1,$A$1:$A$5,0)),C1, "none")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-08-2007
    Location
    Western North Carolina
    Posts
    2
    Thanks so much. It didn't exactly work like a charm, but I will do more more tweaking and see if I can come up with something. I may have to actually post the file for you to have a looksee.


    Cll

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Nightlily
    Thanks so much. It didn't exactly work like a charm, but I will do more more tweaking and see if I can come up with something. I may have to actually post the file for you to have a looksee.


    Cll
    No problem...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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