Formula - how to?

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

In sheet 1 I have product ID's that might be stacked with multiple ID's in a string. Product ID's might have different amount of numbers and combinations with letters, e.g.:

Cell/product ID
A1: 12345, A1122334, 7654321
A2: A9988776, 54321
A3: 7776655

In sheet 2 I have all invoices per product ID (might be several invoices per product).

B: product ID, C: cost

B1: 12345, C1: 100$
B2: A1122334, C2: 50$
B3: A1122334, C3: 200$

For instance, A1122334 occurs in A1 on sheet 1, then I want the formula to sum all values for this product ID from sheet 2= 50+200= 250$.

I would really appreciate your input on this issue.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

In sheet 1 I have product ID's that might be stacked with multiple ID's in a string. Product ID's might have different amount of numbers and combinations with letters, e.g.:

Cell/product ID
A1: 12345, A1122334, 7654321
A2: A9988776, 54321
A3: 7776655

In sheet 2 I have all invoices per product ID (might be several invoices per product).

B: product ID, C: cost

B1: 12345, C1: 100$
B2: A1122334, C2: 50$
B3: A1122334, C3: 200$

For instance, A1122334 occurs in A1 on sheet 1, then I want the formula to sum all values for this product ID from sheet 2= 50+200= 250$.

I would really appreciate your input on this issue.

In your example ID 12345 is also in cell A1, so the result should be 350?
Where do you want the result on sheet1 in cell B1?

Or better, you could put the expected result for each row and on which sheet.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

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