Add the weight when date is provided.

nitishshr

New Member
Joined
Feb 21, 2018
Messages
5
I would like to add weight of items which are delivered. That is if an item has along side a date then add that item to total else do not add that item.
Please provide me formula. There will be 1000 + such rows and 10+ column .

[TABLE="width: 500"]
<tbody>[TR]
[TD]Weight[/TD]
[TD]Date[/TD]
[TD]Weight[/TD]
[TD]Date[/TD]
[TD]Weight[/TD]
[TD]Date[/TD]
[TD]Weight[/TD]
[TD]Date[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1 March[/TD]
[TD]2[/TD]
[TD]1 March[/TD]
[TD]3[/TD]
[TD]5 March[/TD]
[TD]2[/TD]
[TD]2 Feb[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]1 March[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]5 Feb[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]


Add the Weight if Date is provided at the right.
Don't add weight if Date is not provided at the right.


Thank you.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Book1
ABCDEFGHI
1WeightDateWeightDateWeightDateWeightDateTotal
2101-Mar201-Mar305-Mar202-Feb8
31201-Mar3205-Feb4
Sheet1
Cell Formulas
RangeFormula
I2{=SUM(IF(MOD(COLUMN($B2:$H2),2)=0,IF($B2:$H2<>"",$A2:$G2)))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Some things to note:

1. Change $B2:$H2 to be the first and last cells of the dates on the row
2. Change $A2:$G2 to be the first and last cells of the weights on the row
3. If the dates are in an odd numbered column (A, C, E etc.) then change the =0 to be =1

WBD
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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