+ Reply to Thread
Results 1 to 22 of 22

Need help in writing a formula with morethan 7 if conditions.

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Need help in writing a formula with morethan 7 if conditions.

    Please help me, I have an excel where in I have to write a countif condition with morethan 7 conditions to apply.
    What to do ? Please hlep me...

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need help in writing a formula with morethan 7 if conditions.

    Hi Kishore,

    I believe you should create a table on those conditions and then you can use lookup functions (lookup, vlookup etc) to achieve the desired results...
    Upload a sample file in case of any issues. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Re: Need help in writing a formula with morethan 7 if conditions.

    I want the count of 9 scores achieved by Kishore with the following conditions

    If Kishore satisfies any model A,b,C,D,E,F,G AND if the score is 9 then I want how many 9's are there for Kishore.

    Please let me know if you need any other clarifications. Attaching the sample file.....
    Attached Files Attached Files

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    You sample only has the letters "A" to "G" in column C, what are the real values you have in this column?
    What else could there be in this column?

    Assuming only single letters or blanks, this array formula might help
    In say G2
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter not just Enter
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Need help in writing a formula with morethan 7 if conditions.

    Here is several solutions, including Marcol.

    a) Use filters and you'll get desired number above table (filter Kishore, number 9 or else)
    b) Write desired name and letters you want to include

    Warning! In a table you have space after eash name

    c) count everything (because only A to G are included). Works for XL2003.
    d) same as above only XL 2007 version
    e) Marcol solution
    Attached Files Attached Files
    Last edited by zbor; 04-30-2012 at 02:10 AM.

  6. #6
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Need help in writing a formula with morethan 7 if conditions.

    What if I need the results for Kishore for only some Models (A,C,D,G)...remaining models it should not show in the result...Any help please/....

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    Have you looked at the workbook that zbor posted in Post#5?

    The Cells G2:I2 show you how to handle that situation, put ACDG in H2
    If there could be blanks in column C
    Change the formula in I2 to ...
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Re: Need help in writing a formula with morethan 7 if conditions.

    I understand that and it is working fine. But in my original case it is not just a single letter in the model. It is an alpha numeric model number. So what to do now?

    Ex: Service and chat 101242
    service and chat 215412541
    chat 215542154

    So please help me ......

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    I asked this in Post #4
    You sample only has the letters "A" to "G" in column C, what are the real values you have in this column?
    What else could there be in this column?
    You would save everybodies' time, including your own, if you were to post a sample of your real workbook.
    Last edited by Marcol; 04-30-2012 at 06:47 AM.

  10. #10
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Need help in writing a formula with morethan 7 if conditions.

    Oh! I am sorry to mention. Please help me....

  11. #11
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Need help in writing a formula with morethan 7 if conditions.

    Could any one please help me in the above case....
    Marcol...Please help....

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    Kishoremcp, it's not that we don't want to help you, but you must help us help you.

    How many different "Models" are there?
    What are they, are they grouped in any way?
    How are you selecting the ones to count?

    If you post the actual workbook, reduced in size if necessary, and any sensitive data disguised/removed.
    We will be able to make some progress.

    Let us see the whole picture, don't drip feed it in unrelated bits.

    Everybody here is willing to help, but we are not mind readers.

  13. #13
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Need help in writing a formula with morethan 7 if conditions.

    I agree with Marcol.. Alot of time would be saved if you could attach an example sheet. Also it will be easier and will let us experiment with your data.


    Thanks,

    Bonny Tycoon



    **If I was able to help please click the small star icon at the bottom left of my post **

  14. #14
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Re: Need help in writing a formula with morethan 7 if conditions.

    Macol, here is the file which you want me to upload....
    Please find the attached...
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Need help in writing a formula with morethan 7 if conditions.

    Hi Marcol,
    Please help me as I have uploaded the required sample file...

  16. #16
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,694

    Re: Need help in writing a formula with morethan 7 if conditions.

    Pl see the attached file.
    Formula in G2 cell.
    Any clarifications welcome.
    If it is ok, mark the thread solved.
    Attached Files Attached Files

  17. #17
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    Okay, have patience, remember time zones, you're some 4-5 hours ahead of me ...

    Give this a try ...

    With Sheet "Reports"
    1/. Make a list of unique Agents
    In A2
    Please Login or Register  to view this content.
    Drag/Fill down until the formula returns blanks, say in this case 75 rows.
    If more agents are added to Sheet "Raw Data" Column C they will be detected, this column must be continuous and cannot have blanks.

    2/. In B2, this array formula
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter not just Enter
    Drag Across to Column H, then down to last used row in Column A

    3/. Put the minimum "Satisfaction Level" you require in K2.the
    If you leave K2 blank the table will return a count of all the results for each agent
    If you put a number in K2 the table will return a count of all the results greater or equal to your expectation for each agent.

    Note
    I only have access to Excel 2003 at present, someone with a higher version might want to try to improve on the SUMPRODUCT() formula.

    [EDIT]
    @ kvsrinivasamurthy I think you're a bit behind the curve with this one ...
    Attached Files Attached Files
    Last edited by Marcol; 05-01-2012 at 05:18 AM.

  18. #18
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,694

    Re: Need help in writing a formula with morethan 7 if conditions.

    Pl see the attached file.
    Formula can be dragged.
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Need help in writing a formula with morethan 7 if conditions.

    Thank you for your response Marcol and I am sorry for buzzing you more times.
    If I checked it manually it is giving me worng results. I need the count of 7 in 7 Headding (H2), 6 in (G2) like that for 1 in (B2)
    for the agent name in A2. like that... but here i am getting wrong outputs. Please check them once again for me....
    Thank you very much for your efforts to help me....

  20. #20
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    Your sample book gives a list of models all of which aren't in Sheet "Raw Data",there are also some in that sheet that you haven't listed, is this correct?

    1/. I have creaed a list of models that are in Sheet "Raw Data", this is in Column L.

    2/. Use this list as the Dynamic Named List "Models"
    Refers to:=
    Please Login or Register  to view this content.
    3/. The Data Validation List in J2 refers to "Models"
    Select from this drop-down to get the various counts in the table.

    4/. In B2
    Please Login or Register  to view this content.
    Drag Across and Down.

    Is these the results that you are after?

    @ kvsrinivasamurthy Have you posted in the correct thread?
    Your attachment in post #18 seems unrelated to this one ...
    Attached Files Attached Files
    Last edited by Marcol; 05-01-2012 at 07:54 AM.

  21. #21
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Need help in writing a formula with morethan 7 if conditions.

    Do you mean this? see sheet Pivot:
    Attached Files Attached Files

  22. #22
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help in writing a formula with morethan 7 if conditions.

    Hmm?
    After all the bumps, and pleas for help, it seems that kishoremcp has vanished in the ether ...
    I do hope he's well, and will be back with us soon ...

+ 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