How to sum numbers with multiple criteria

onmine

New Member
Joined
Apr 16, 2017
Messages
1
Hi,
I'm trying to sum numbers with multiple criteria.

To prevent the number of columns from increasing,
I've written the information in one cell.


Column1 Column2
Project1 P3(2)
Project2 P6(4)
Project3 L5(2)

Then, I want to sum numbers
(1)seperating the numbers in parentheses from the numbers outside, andd
(2)depending on wht the preceding letter(P/L/F) is.

The results I want are shown below.

Column1 Column2
Project1 P3(2)
Project2 P6(4)
Project3 L5(2)
P(Goal) 9
P(Performance) 6
L(Goal) 5
L(Performance) 2


Please help me make vba code for this work.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Any time you combine numbers and text, you end up with text, not a number/value, and you cannot add text. I suggest that you try and slip the numbers from the text, and then run your calcs based on that
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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