+ Reply to Thread
Results 1 to 3 of 3

I think it's a nested If statement....

  1. #1
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327

    I think it's a nested If statement....

    Hi All,

    I'm looking for some help in putting together a nested If statement (I think)

    If I have a sheet with columns laid out as follows:

    Each Row in Cols A B and C have dropdown choices of Y,N or N/A

    In Col D I would like to see Pass, Fail or Error depending on the values of Cols A B and C based on:

    Y Y Y = Pass
    Y N/A Y = Pass
    Y N/A N = Fail
    Y N N = Fail
    N N N = Fail
    Y N Y = Error.

    I've tried applying values of 1,2 and 3 to each of the Y,N and N/A and then totalling those numbers to then apply a formula like

    =IF(D1<5,"Pass",IF(D1=5,"Error",IF(D1>=5,"Fail")))

    But I'm getting myself tangled up in what I think should be quite a simple question

    Many thanks for any help

    Seamus
    Hope this helps

    Seamus

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: I think it's a nested If statement....

    Using a lookup table maybe.

    Dom
    Attached Files Attached Files
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327

    Re: I think it's a nested If statement....

    Excellent Dom - just what I was looking for

    Seamus

+ 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