Daily datewise calculation with colour formatting

vishu

Board Regular
Joined
Oct 26, 2011
Messages
64
Office Version
  1. 2016
Platform
  1. Windows
Hi

I have daily vegetable list want to calculate date wise formula. e.g Date column is A where fist cell is date rest is blank till my next date.
Excel Formula:
B is item C is qty D is rate E is Amount and Column F is where i want help which is Daily total formula need automatically till my next date. I tried =IF(AND(A3<>"",SUM(E$1:E2)),"") but result not giving me proper answer. Please help

ABCDEF
DateItemQtyRateAmtDaily Total
01-Apr-24Coriander61590
Curry Leaves3618
Green Onion31648
Lemon705350
Tomato51575
Beans260120
Gajar340120
Cauliflower530150
Capsicum16060
Mirchi270140
Kakadi22550
Dudhi23060
Shevga15050
Bhopla1.53045
PineApple1100100
Papaya14040
Gobi6201201636
02-Apr-24Coriander1015150
Palak51050
Pudina5630
Curry Leaves3618
Green Onion21530
Lemon805400
Tomato1016160
Ginger1120120
Garlic1180180
Beans265130
Gajar340120
Gobi520100
Capsicum16060
Kakadi220401588
03-Apr-24Potato532160
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
try this:

Book1
ABCDEFGH
1DateItemQtyRateAmtDaily Total
22024-04-01Coriander61590 
3Curry Leaves3618 
4Green Onion31648 
5Lemon705350 
6Tomato51575 
7Beans260120 
8Gajar340120 
9Cauliflower530150 
10Capsicum16060 
11Mirchi270140 
12Kakadi22550 
13Dudhi23060 
14Shevga15050 
15Bhopla23045 
16PineApple1100100 
17Papaya14040 
18Gobi62012016361636
192024-04-02Coriander1015150 
20Palak51050 
21Pudina5630 
22Curry Leaves3618 
23Green Onion21530 
24Lemon805400 
25Tomato1016160 
26Ginger1120120 
27Garlic1180180 
28Beans265130 
29Gajar340120 
30Gobi520100 
31Capsicum16060 
32Kakadi2204015881588
Sheet1
Cell Formulas
RangeFormula
G2:G32G2=IF(ISNUMBER(A3),SUM(INDEX($E$2:E$500,MATCH(MAX($A$2:A2),$A$2:$A$500,0),1):E2),"")
 
Upvote 0
@Cubist , i'm not sure they want a running total. But I like the simplicity of your formula. Is there a way to make it only go to the previous date?
 
Upvote 0
try this:

Book1
ABCDEFGH
1DateItemQtyRateAmtDaily Total
22024-04-01Coriander61590 
3Curry Leaves3618 
4Green Onion31648 
5Lemon705350 
6Tomato51575 
7Beans260120 
8Gajar340120 
9Cauliflower530150 
10Capsicum16060 
11Mirchi270140 
12Kakadi22550 
13Dudhi23060 
14Shevga15050 
15Bhopla23045 
16PineApple1100100 
17Papaya14040 
18Gobi62012016361636
192024-04-02Coriander1015150 
20Palak51050 
21Pudina5630 
22Curry Leaves3618 
23Green Onion21530 
24Lemon805400 
25Tomato1016160 
26Ginger1120120 
27Garlic1180180 
28Beans265130 
29Gajar340120 
30Gobi520100 
31Capsicum16060 
32Kakadi2204015881588
Sheet1
Cell Formulas
RangeFormula
G2:G32G2=IF(ISNUMBER(A3),SUM(INDEX($E$2:E$500,MATCH(MAX($A$2:A2),$A$2:$A$500,0),1):E2),"")
Sir thank you very very much. You saved me
 
Upvote 0
Sir thank you very very much. You saved me
you're welcome, you can change the row 500 in the formula to the row you are on. I don't know what I was thinking when I thought that was needed. So in the cell F2 use this formula and drag it down:

Excel Formula:
=IF(ISNUMBER(A3),SUM(INDEX($E$2:$E2,MATCH(MAX($A$2:$A2),$A$2:$A2,0),1):$E2),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,775
Members
449,468
Latest member
AGreen17

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