View Poll Results: IF AND OR Statement, not working need help

Voters
0. This poll is closed
  • IF AND or OR function is not giving correct result, need help

    0 0%
  • IF Logical function

    0 0%
Multiple Choice Poll.
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 34

Thread: IF AND OR excel statement

  1. #11
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription


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

    The attachment hasn't changed - you haven't done what I asked in post #2.

    I need to know what you are aiming for.
    Ali
    Enthusiastic self-taught user of MS Excel!

  2. #12
    The attachment is in my Post #4 and in this post too (In column only P I have manually input the result I want) , the file name has v1 at the end.
    I need "complete" if there is only C,Z or "" in cell D5 to O5, otherwise "No"

    Thank you
    Attached Files Attached Files

  3. #13
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription
    Sorry - I somehow missed post#4.

    Try this copied down:

    =IF(SUM(COUNTIF($D5:$O5,{"C","Z",""}))=12,"Complete","No")

    or this:

    =IF(SUM(COUNTIF($D5:$O5,{"C","Z",""}))=COLUMNS($D5:$O5),"Complete","No")
    Last edited by AliGW; 2018-04-09 at 02:02 PM.
    Ali
    Enthusiastic self-taught user of MS Excel!

  4. #14
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription
    Any use to you?
    Ali
    Enthusiastic self-taught user of MS Excel!

  5. #15
    Its good. I would not have fig it out this formulas..
    Have a question, instead of selecting $D5:$O5, is it possible to choose cells individually for eg D5, F5, G5, I5 etc.. what would be the formula?
    I was trying to tweak your formula but not working from me.
    thank you

  6. #16
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription
    Why would you want to do that? I hope you are not Saying that your real data is not like the sample data you provided?

    I'm not going to advise unless you share another workbook that shows the layout of the real data you want to use this with. There may be an easy fix, but I'd have to see.

    Please bear in mind in future that we provide solutions based on your sample data: if that is not realistic, then you are not going to get the solution you need. We can't see what's not there!
    Ali
    Enthusiastic self-taught user of MS Excel!

  7. #17
    Sorry, for the confusion and more work.

    See attached the workbook: Student v2. these are the real data.

    your 1st formula is on col AB. My manual input (the result i am expecting) is on col AC.
    The additional cols. are "student" col and "S. Name" which were not in my previous workbooks, student col are added after every month col.
    In new formula I want to include only cells i.e. month: D5, F5, H5... etc ( jan to dec) (not Student amount).

    Thank you
    Attached Files Attached Files

  8. #18
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription
    I will look in the morning. Bedtime here.
    Ali
    Enthusiastic self-taught user of MS Excel!

  9. #19
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription
    You can use this:

    =IF(SUM(COUNTIF($D5:$AA5,{"C","Z",""}))-COUNTIFS($D$4:$AA$4,"Student",$D5:$AA5,"")>=12,"Complete","No")

    Please note:

    1. You do not need a + sign at the start of this forumla (I don't know why you added one, but it is not necessary).
    2. Do not change the end of the range back to column Z - if you do, it won't work.
    Attached Files Attached Files
    Last edited by AliGW; 2018-04-10 at 07:49 AM.
    Ali
    Enthusiastic self-taught user of MS Excel!

  10. #20
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,251
    Articles
    0
    Excel Version
    Office 365 Subscription
    Once again, it would be nice to know whether or not this worked for you.
    Ali
    Enthusiastic self-taught user of MS Excel!

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Tags for this Thread

Posting Permissions

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