Function for tax?

T

TB in DC

Let's say I get a hotel for two nights at the same hotel.
One night costs $50 and the second night $55.
The total bill is $105. The tax is 12.75.
Is there a function in Excel that can tell me a) what the tax is per night
b) how it's distributed.
I tried using solver but it just cut the tax in half.
Thanks in advance.
 
R

Roger Govier

Hi

With night1 in A1 and night2 in A2, Total tax in B1, enter in C1
=ROUND($B$1/SUM($A$1:A2)*A1,2)
and copy down
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top