Results 1 to 5 of 5

Thread: Nested IF's ?

  1. #1
    Seeker Dougj's Avatar
    Join Date
    Oct 2018
    Posts
    12
    Articles
    0
    Excel Version
    2007 office365

    Nested IF's ?



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Good day folks.

    I am having a bit of trouble with a formula, most specifically where I need to specify ranges.

    Here is what I am trying to do.

    Cell A1 can contain one of two entries, either an "A" or "B".
    Cells in Column B (range of about B5:B200) can contain either a "1","2", "3" or "4".

    If cell A1 contains an "A" then I simply want to enter a $0.00 in cell C1.
    If, however, cell A1 contains a "B" then in cell C1 I want to SUM all the cells in column C (range of about C5:C200) that have a corresponding cell in Column B that contains a "4".

    I think I should be using nested IF's or SUMIF's but I am having difficulty specifying how to add all the values in column C based on what is in column C.
    Any direction would be appreciated.

    D.

  2. #2
    Conjurer Fluff's Avatar
    Join Date
    Sep 2018
    Posts
    130
    Articles
    0
    Excel Version
    O365
    How about
    =IF(A1="B",SUMIFS(C5:C200,B5:B200,4),0)

  3. #3
    Seeker Dougj's Avatar
    Join Date
    Oct 2018
    Posts
    12
    Articles
    0
    Excel Version
    2007 office365
    Thanks for that. I will give it a try and get back.

  4. #4
    Seeker Dougj's Avatar
    Join Date
    Oct 2018
    Posts
    12
    Articles
    0
    Excel Version
    2007 office365
    Fluff, your formula has solved my problem. I didn't know the SUMIFS function existed until today so thanks for the info.

    D.

  5. #5
    Conjurer Fluff's Avatar
    Join Date
    Sep 2018
    Posts
    130
    Articles
    0
    Excel Version
    O365
    Glad to help & thanks for the feedback.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •