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 .

WeightDateWeightDateWeightDateWeightDateTotal
11 March21 March35 March22 Feb8
121 March325 Feb4

<tbody>
</tbody>


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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

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,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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