+ Reply to Thread
Results 1 to 21 of 21

Countif with Indirect formula help

  1. #1
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Countif with Indirect formula help

    Dear Experts, I got stuck once again and looking for your precious support. I have tried with countif formula but not succeeded. Please find here attached sample workbook where i have mentioned the expected results for a sales person monthwise.

    I do have a situation where i need to count the numbers of the customers Newly added for the month and how many out of them got removed in the month from their sales pipeline.

    For Jan month if the Customer name is disappeared from Feb then that would be counted as 1Qty that will be appeared in cell B3 Report tab under customer removed from the pipeline and that particular removed customer deal value will be appeared in Cell C3 Report tab.

    I am looking my expected results in Report tab from Cell B2:C4 based on the Selected Sales Person from the dropdown and the output will be coming from Master tab.

    For eg. Sales person ABC in the Master tab there are only 3 customer have been removed from Feb-18 which was added in Jan-18 so the Qty for Removed customer would be 3 in cell B3 Report tab and deal value for those 3 customers which got removed from Feb-18 pipeline will be appeared in cell C3 Report tab and the same criteria would also be applicable for the upcoming months.

    I hope i have explained everything what i am looking for. Please feel free to revert back in case of further clarification.

    Many thanks and kind regards,

    Neilesh


    Dear Experts i do apologies for making the changes in the expected results and accordingly i have mentioned above now everything finally my expectations. Please find here attached revised sample workbook.

    Once again apologies
    Attached Files Attached Files
    Last edited by Neilesh Kumar; 03-27-2018 at 08:03 AM. Reason: completing the Info

  2. #2
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts, Request to you please help me out.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,321

    Re: Countif with Indirect formula help

    Please be patient.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts, The essence of the expected result is, count if the customer name is appearing only once from the period they appeared in the Master tab and for which Sales person.

    For eg. For Sales Person ABC if the Customer name is appearing for Jan month and if it is not getting repeat after the Jan month would be consider as Account Removed from Sales pipeline and if Customer is getting repeat in the upcoming month from the month once the customer appeared then that customer wont cover under Account Removed.
    Last edited by Neilesh Kumar; 03-27-2018 at 10:12 AM.

  5. #5
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts, I have simplified more than my previous requirement as posted above. Request to you please find here revised sample workbook.

    New Accounts Added Criteria:


    In Report tab Cell E2 is denoting the Quantity for New Added Customers for Sales person ABC in the immediate next month. Suppose if we are calculating for Jan month so the calculation will be based on Feb month tab. If you go through the Feb tab you will find 3 New Customers have been added which are highlighted with yellow color and these 3 New Customers were not there in Jan tab. So in Report tab for Jan New Added accounts result is Qty 3 and the total value of 3 Newly Added Customers would be their Contract and Service Revenue Value and the Value for 3 Newly Added Customers will be appeared in Cell F2 in Report tab.

    Accounts Removed Criteria:

    In the Report Cell J2 is denoting the Quantity for Accounts removed from Sales Person pipeline. If you will go through the Jan tab you will find there are 6 Customer are highlighted with blue color which are not available immediate after Jan tab i.e means in Feb tab. So that is the way calculated Qty as 6 and those 6 Customers Contract Value and Service Revenue from Jan tab is appearing in Cell K2 in Report tab.

    The Same Criteria will be applicable for all the rest of the months.

    I hope it is little bit more clear and simplified then the previous expected results. Request to you please help me. Any Support would be appreciated.

    Many thanks and kind regards,

    Neilesh

    Countif with Indirect Sample Workbook_03.xlsx

  6. #6
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts, I know the getting expected results is quite difficult for me but i am very much sure you guys can crack it. Please find here attached more simplified workbook for the expected results. Now i have removed months tab and combined all the months in a new Master tab. Is it possible now to get the expected results.

    Criteria for New Accounts Added to the Sales Pipeline (For Cell E2 & F2 Report Tab):

    Total Quantity added In (immediate upcoming month from Jan) Feb-18 as New Customers. These Customers added in Feb-18 are not available in Jan-18 in the Master tab. That is the reason those are falling under New Customer Added. So the New customers added in Quantity are total 3 in Feb-18 will be appeared in Cell E2 Report tab and their Total Contract Value and Service Revenue will be appeared in Cell F2 in Report tab.

    New Customers added in Feb-18 are highlighted with Yellow Color.


    Criteria for Accounts Removed from the Sales Pipeline (For Cell J2 & K2 Report Tab):

    Total Quantity of those Customer which were available in Jan-18 but disappeared in Feb-18. So the total Quantity of disappeared Customers in Feb-18 Sales Pipeline are 6 (Highlighted with Blue Color). Quantity 06 will be appeared in Cell J2 in Report tab and their Total Contract Value and Services Revenue will be appeared in Cell K2 in Report tab.

    Request to you please help me. Any help on the same would highly be appreciated.

    Many Thanks and Regards,

    Neilesh
    Last edited by Neilesh Kumar; 03-28-2018 at 08:51 AM.

  7. #7
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts, Request to you please help me out.

  8. #8
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts, can we do the conditional formatting first basis on the repeating of the Customers and then can you please do the VBA for counting basis on the color. i feel that is the way to figure it out.

  9. #9
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Experts,

    I have changed the latest attachment which is upgraded with conditional formatting to the Master tab data. i feel by using the conditional formatting can we figure out the expected results. Request to you please help me out.

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Countif with Indirect formula help

    Dear Neilesh Kumar

    The solution I propose have a two helper columns in Master Sheet
    Column AL from AL2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column AM from AM2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use in E2, F2, J2 and K2 the folowing formulas (and copy down)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Last edited by José Augusto; 03-28-2018 at 11:04 AM. Reason: Correction for AL2 formula , and file

  11. #11
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Countif with Indirect formula help

    Hi
    Sorry. In the help columns, I've introduced a fix for the filter to work.
    The formulas for AL2 and AM2 (copy down) are
    Please Login or Register  to view this content.
    See the new file

  12. #12
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    125

    Re: Countif with Indirect formula help

    You can use the array formulas with no helper columns - sheet Report
    E2
    Please Login or Register  to view this content.
    F2
    Please Login or Register  to view this content.
    J2
    Please Login or Register  to view this content.
    K2
    Please Login or Register  to view this content.
    Entered with Ctrl+Shift+Enter
    Last edited by soledad; 03-28-2018 at 12:41 PM.

  13. #13
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Dear Expert, José Augusto You Rocked. Thanks a ton for your valuable support. I do appreciate your valuable contribution.

  14. #14
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Countif with Indirect formula help

    You are welcome.

    Thanks for your feedback.

  15. #15
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Quote Originally Posted by José Augusto View Post
    You are welcome.

    Thanks for your feedback.
    Dear Expert, Jose, I do have small concern that if we skip a month in Master tab so then also the formula in Cell AL n AM in master tab will provide the same output.

  16. #16
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Countif with Indirect formula help

    I do not know if I understood correctly what you are asking me. So, I'll ask you a question to clarify.

    If, in the Master tab, there are no February values, the month before March is January?

    If so then I will have to think about a correction to the formulas of columns AL and AM. If not, then the formulas look right to me.

  17. #17
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Quote Originally Posted by José Augusto View Post
    I do not know if I understood correctly what you are asking me. So, I'll ask you a question to clarify.

    If, in the Master tab, there are no February values, the month before March is January?

    If so then I will have to think about a correction to the formulas of columns AL and AM
    Exactly the same Sir, Because the February month skipped for pipeline data and now i have put the numbers in Master tab for Mar-18 immediately after Jan-18 and the current formula in AL & AM is not giving the correct output.

  18. #18
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    Sir instead of changing the formula if keep the same data for Feb like i kept for Jan then the provided formula will work

  19. #19
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Countif with Indirect formula help

    **
    ************
    Last edited by José Augusto; 03-30-2018 at 06:58 AM. Reason: Nothing to report here

  20. #20
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Countif with Indirect formula help

    Hi
    I solve your problem.See the file

  21. #21
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Countif with Indirect formula help

    You Rocked Sir. Amazing Sir. Thank you so much Sir.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using Indirect with Countif
    By swifty1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2015, 11:48 PM
  2. Replies: 16
    Last Post: 09-29-2015, 01:06 AM
  3. Countif and indirect formula
    By Danfrancozola in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-01-2014, 11:03 PM
  4. [SOLVED] Adding Indirect formula to a Countif
    By nikkilynn2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2014, 08:24 PM
  5. [SOLVED] 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-29-2013, 08:10 PM
  6. COUNTIF and INDIRECT
    By Simon Gahan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-21-2012, 05:52 AM
  7. INDIRECT COUNTIF's??
    By alymcmorland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2005, 07:55 AM

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