Posted on 2014-09-05
Last Modified: 2014-11-19
I have a spreadsheet that finds the total number of times a category reason code is noted on another worksheet, but now I have to find what the total dollars are for that category reason code.  How do I proceed?  Use an "If" statement, a "Match" + Sumproduct statement, or ???

Attached is a sample of the spreadsheet; the Review worksheet has the categories with their count + dollar columns and the Detail worksheet the codes used with the claim value.
Question by:castlerj
  • 2
LVL 27

Accepted Solution

Glenn Ray earned 500 total points
ID: 40306659
Great formula.  You only have to add a reference to the "Except Amt" column in the SUMPRODUCT formula to return the total amount for any category:

=IF(C6="","",SUMPRODUCT(--(ISNUMBER(FIND(","&C6&",",","&SUBSTITUTE(Detail!B$2:B$41," ","")&","))),Detail!$C$2:$C$41))


Author Comment

ID: 40306744
Thanks for pointing that out! Worked!
LVL 27

Expert Comment

by:Glenn Ray
ID: 40382396

My last solution (40306659) appears to have met your requirements.  If you agree, can you please properly close this question by clicking the "Accept as solution" link above that answer?  This will help ensure that future searches are meaningful to other EE members.

If it does not and you still have any questions, let me know.

LVL 45

Expert Comment

by:Martin Liss
ID: 40451899
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now