How to gather total cost without repeating the same cell value from different columns

annasv

New Member
Joined
Jul 13, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello everybody

So I am trying to gather total cost for a project, so in one sheet called "Cost" I have a tables for itemized cost and in another sheet called "Results" I am trying to gather cost that I have selected from different tables in the Cost sheet. So in the Results sheet, I have made a table with selected cost that have the following commands;

Excel Formula:
=IF(D9="No";Cost!D12+Cost!D14+Cost!D37+Cost!D44+Cost!D50;"0"))
Excel Formula:
=IF(D11="No";Cost!D14+Cost!D89;"0")
Excel Formula:
=IF(D13="No";Cost!N12+Cost!D44+Cost!D77+Cost!D89;"0")

So if the Cell in the D column says No the cost should be 0, but if not the cost should be shown in the F column.

My problem is that I want to show below the total cost of it all but I don't want the same cost to be repeated, so for example: Cost!D44 is in the top and the bottom command and I only want it to be shown one time in the total cost. This example was just for the shortest table, I also have one that requires 7 columns and has up to 10 different cells from the Cost sheet repeated, so I am wondering if it would be better to use VBA instead, and if so how could I do that?

Hope you can understand what I am trying to explain! :)
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I am honestly lost ... ;)
I wouldn't even try to understand it without seeing it. All kinds of formulas can be made, but i just can't see the logic in summing scattered cells.
But it seems to me like a poor data design.
Imho you don't need many tables for costs. Just one is probably perfectly enough.
Wolud you care to elaborate and maybe provide some sample data.
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

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