Excel

alliswell

Board Regular
Joined
Mar 16, 2020
Messages
190
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Hi everybody
A B C D E
1 Product Total 50 5
2 2,3 115

A2 has 2,3 and B2 has total 115
I want is that 2,3 in A2 must get multiplied by D1 n E1 such way that 2 must get multiplied by D1
And 3 must get multiplied by E1 and sum results in B2.
 

Attachments

  • Screenshot_20210831-190727_WPS Office_1.jpg
    Screenshot_20210831-190727_WPS Office_1.jpg
    21.5 KB · Views: 6

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Maybe:
Book1
ABCDE
1505
22,3115
Sheet2
Cell Formulas
RangeFormula
B2B2=LEFT(A2,SEARCH(",",A2)-1)*D1+MID(A2,(SEARCH(",",A2)+1),LEN(A2))*E1
 
Upvote 0
Dear AhoyNc
Suppose if i have 2,3,7,4 in A2 and 50,5,10,15 in D1:G1 how will be the formula then in B2 to get the sum.
 
Upvote 0
I don't know of an easy way to do this with formulas. Maybe someone can help with a VBA solution.
I would probably use the Text to Columns option under the Data ribbon to separate the numbers into different columns and then the SUMPRODUCT function.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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