I’m trying to help a co-worker tweak a spreadsheet.
It contains information about appealed claims. It must be sorted by the patient’s name for use by the head of case management, but she would like to show totals for each insurance company at the bottom.
One of the insurance companies is Blue Cross. There several different types of Blue Cross, but they need to be added together.
I need a formula like:
If (contents of column D starts with “BC”) then add the figure in Column E.
I could then modify the formula to be used for the other insurance companies.
The Excel function DSUM was designed to do this. I’m not sure if it works on a portion of a cell though as you seem to indicate you want it to. You might hav eto set up another column holding just the two characters you want to focus on.
I’d say the SUMIF function is the function to investigate.
I believe it would be (in your case)
=SUMIF(D1:D10=“BC”, E1:E10)
The function searches the range (cells D1 through D10) and if it finds a match, it will add it to whatever cell the SUMIF function is in (for example cell E11).
I think I have it typed correctly but if it doesn’t work, look it up on the HELP section because the syntax must be exact. (Also note the use of “wild cards” around the search term.)
The smilie got in there because it is produced by the colon D.
Anyway, I just wrote a quick formula on my own computer and here is the proper syntax:
(To avoid another smilie, I changed the columns to E and F.)
For future reference, there’s a check-box that’s not very prominent under “miscellaneous options”, below the post box, for “disable similies in text”. Once you check it, you can post normally-smiley-generating sequences of characters with impunity: :eek:
Thanks Darren
I always wondered why that box was there.
To me it seemed superfluous. If I didn’t want smilies I wouldn’t put those in to begin with.
(A button I use quite frequently but not that time was preview). :smack:
It looked like a straightforward text posting so I didn’t need to use preview right? (guess not)
If you’re really interested in becoming a spreadsheet jockey, look into pivot tables. I have no idea on how one makes pivot tables though. However, pivots are prevalent in my company and I use them every day to access data. here’s an intro link: http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=553