Need to Multiply with 2 criteria

asksign

Board Regular
Joined
Mar 22, 2016
Messages
62
Hi,

I need to multiply A1 x A2, B1 x B2, C1 x C2 & D1 x D2 and so on, but the answer should come as shown below.


[TABLE="width: 504"]
<colgroup><col span="5"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Expected Answer[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]Total Weight in gms[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1gm[/TD]
[TD]2gm[/TD]
[TD]3gm[/TD]
[TD]4gm[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]28[/TD]
[/TR]
</tbody>[/TABLE]

Can anyone help me in this.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Try
Code:
=LEFT(A1,1)*A2+LEFT(B1,1)*B2+LEFT(C1,1)*C2+LEFT(D1,1)*D2

but it would be much easier to remove the gms from the cells and insert e nemw title row called gms !!
 
Upvote 0
I agree with Michael that it would be simpler if you could remove the "gm" from the top row. Then you could use this, copied down.

Excel Workbook
ABCDE
11234
2122323
325116
422528
Multiply 1




However, even with the "gm" text in that top row, try this, copied down.

Excel Workbook
ABCDE
11gm2gm3gm4gm
2122323
325116
422528
Multiply 2



BTW Michael, yours would fail if something like 12gm was possible in the top row. It also needs some $ signs if it is to be copied to the other rows.
 
Last edited:
Upvote 0
Thanks Peter, was aware of the 12gm...:beerchug:
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,571
Members
452,652
Latest member
eduedu

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