Can anyone help me to use Sumproduct for the following?
Col1 Col2
5 1 mL
4 1.5 mL
5 2.5 mL
7 2 mL
2 1.5 mL
Thanks.
Can anyone help me to use Sumproduct for the following?
Col1 Col2
5 1 mL
4 1.5 mL
5 2.5 mL
7 2 mL
2 1.5 mL
Thanks.
Try
=SUMPRODUCT(A2:A6,LEFT(B2:B6,LEN(B2:B6)-3)+0)
With your sample data in A1:B6...Headings are in Row_1
This regular formula multiplies each Col_A value times each Col_B numeric and returns the sum
Formula:Please Login or Register to view this content.
Is that something you can work with?
Hi, and welcome to the forum,
=SUM(A2,LEFT(B2,FIND(" ",B2)-1))
Will this work for you?
A B C 1Col1 Col2 Sum 2 51 mL 6 3 41.5 mL 5.5 4 52.5 mL 7.5 5 72 mL 9 6 21.5 mL 3.5
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
another way..
=SUMPRODUCT(A2:A6,SUBSTITUTE(B2:B6,"mL","")*1)
Life's a spreadsheet, Excel!
Say thanks, Click *
You guys are awesome! Thanks All.
@Jonmo1: Your fomula works, but I do not understand the +0 in it. I would appreciate an explanation.
@Jonmo1: Nevermind. I think I know why. It's the same kinda trick Ace_XL used in his formula.
FORUM MODERATOR'S REQUEST:
Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".
For the meantime I'll do it for you.
How?
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Note:
You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
I think people forget the word "THANK YOU!!!!" Do you still know it???
There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "
Regards,
Vladimir
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks