dynamic sum function

AliBb

New Member
Joined
Apr 28, 2018
Messages
25
I have the following table I want the O/S column to calculate Total - sum(C4:?4)

? is determined based on the date in A2. In this example A4-sum(C4:C4) = 9000

If A2 = 31/8/18 then the formula would be A4-SUM(C4:D4).

How do I make this range dynamic?
ABCDE
1
231/7/18
3TotalO/SJul-18Aug-18Sept-18
4100009000100010001000

<tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Using your posted example, try this regular formula:
Code:
B4: =A4-SUMIF($C$3:$N$3,"<="&$A$2,$C4:$N4)
Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,216,790
Messages
6,132,710
Members
449,754
Latest member
KJSCPA

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