Cost Per Page Countif formulea

RobDazey

New Member
Joined
Jul 16, 2009
Messages
3
Hello,
My hospital in South Georgia - US - chages .97 cents per medical record page from 1 -20
.83 cents per medical record over 21 pages to 100 pages
.66 cents per medical record page for anything over 101+

What I'm trying to figure out is an formulea for placing one number (page amount) and giving the total cost to the patient for all the pages copied.
If the total pages was 120 then I would want to total that cost .97 cents x 20 pages plus (+) .83 cents for the next 80 pages and .66 for the remaining pages (20) and get one cost.

If this is not possible with an countif formulea, would you steer me in the right direction.

Thanks in advance
Rob

Configuration: Windows XP Internet Explorer 7.0 excel 2003</PRE>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Here is another way

=SUMPRODUCT(--(A10>{0,20,100}),(A10-{0,20,100}),{0.66,0.17,0.14})
 
Upvote 0
another one,
Excel Workbook
AB
1PagesCharge
212099
310085.8
49984.97
58573.35
62523.55
71514.55
Sheet4
Cell Formulas
RangeFormula
B2=(A2-100)*0.66*(A2>100)+CHOOSE((A2>100)+1,(A2-20),80)*0.83*(A2>20)+CHOOSE((A2>20)+1,A2,20)*0.97
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top