sum 2 different criteria in the same cell

rowrow780

New Member
Joined
Dec 26, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
hello - i am trying to sum the number after each letter. the total sum will be added to the correct cell.
example: employee takes V1 ( vacation 1 hour ) and also P4 (sick time). the total hours for each type will be under the correct total hours ( column AH AI AJ )

is this possible to do? I am not sure what formula to use for this one . or is it better to put each type of time off in its own cell?
( Thank you Eric who helped me with the original question! )
 

Attachments

  • Screenshot 2022-12-28 090130.jpg
    Screenshot 2022-12-28 090130.jpg
    26.4 KB · Views: 11

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about this?

VSP
ABCDEF
1VacSickPD
2Test 1v1 p41 4
3Test 2v2 s1 p3213
4Test 3s1 p14 114
Sheet6
Cell Formulas
RangeFormula
D2:F4D2=LET(o,$B2&" ",v,SEARCH(LEFT(D$1),o)+1,IFERROR(INT(MID(o,v,FIND(" ",o,v)-v)),""))
 
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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