Formula for Trip Costings

Archea

New Member
Joined
Sep 25, 2011
Messages
3
Right, what I'm attempting to do here is work out the cost incurred to each individual of a number of people who went on a trip.

Basically, I paid for everything and now want to split the cost between appropriate people so I made a table (food down the side and people along the top).
The problem is some people didn't use all the items, and don't want to pay for the items they didn't use.

So the cost for each item needs to be divided by the number of people that say 'yes' in that table I've laid out for them.

When this column was created, I called it "Divided Amount", so now each individual item has its per-person cost in that column and it fluctuates depending on how many people respond with 'yes'.


SO the bit im struggling with: When person x has replied 'yes' for food y, I need to include item y's 'Divided Amount' in the totals table, which tells each person how much they need to pay. This needs to sum the costs of all the items that the person has responded to with a yes.

I'm sure excel can do this, access may be more appropriate - let me know what you think!

NB: While using 2010 myself, most users will be accessing via 2003 and so the file has to be saved as a .xls!

Cheers

Archea
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try and upload a sample please, sounds like averageif is what you need but will be easier to tell from your layout
 
Upvote 0
Hi,

Not sure but I have used formula in Cell V4 and copied down

=SUMPRODUCT(($F$1:$O$1=$U4)*($F$2:$O$28="Yes")*($R$2:$R$28))

The formula above would work from Excel 2003 -2010.

Does this help?

Biz
 
Upvote 0
Biz,

That seems to work ok thanks yes!

I'll transpose it into the non-doctored version and see if it still works ok.


Thanks

Archea
 
Upvote 0
Biz,

That seems to work ok thanks yes!

I'll transpose it into the non-doctored version and see if it still works ok.


Thanks

Archea

Thnx for feedback.

Biz
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,881
Members
452,948
Latest member
Dupuhini

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