# Cumbersome formula

#### absolutelyprobable

##### New Member
Hi,

Depending on what day it is (in cell A1), I want my total (in cell B2) to show the sum of figures in each row up to and including that day.

I've got a formula that does this but it's long which means I can't exstend this to cover two working weeks at a time.

Can anyone figure if there is/are function/s that will provide a neat solution?

Gareth
Book1.xls
ABCDEFGH
121/09/200618/09/200619/09/200620/09/200621/09/200622/09/2006
21012345
Sheet2

### Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
=SUM(D2:INDEX(D2:H2,MATCH(A1,D1:H1,1)))

Wow

That's remarkably quick with your reply that does preciselly what I need

Fantastic! Thanks a lot Aladin - I seem to recollect you having helped me out before too. I appreciate the value your contribution adds to this forum.

Regards,
Gareth

Replies
3
Views
365
Replies
18
Views
472
Replies
2
Views
291
Replies
1
Views
490
Replies
7
Views
244

1,218,909
Messages
6,145,164
Members
450,591
Latest member
mba3170

### 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.

### Which adblocker are you using?

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

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