Need help with "If/Then" Statements I think

CSRUSS

New Member
Joined
Sep 2, 2018
Messages
5
I am trying to auto-populate cells using IF/Then Statements (I think)

The following is a description of the sample table below:
- Hours (Number of Hours Worked)
- Role Name
- Role Code (LSEA, SEA1, SEA2, SEA3, Tools, PM, GOV)

Question: How do I link the hours for a specific Role name to the corresponding Role Code Column? I want to be able to change the Role Name and then it automatically adjusts the hours to the corresponding Role code.

Your help would be greatly appreciated!

HoursRole NameLSEASEA1SEA2SEA3ToolsPMGOV
16SENIOR EA316
8LEAD SENIOR LEVEL EA8
16GOV16
8SENIOR EA38
8PM8
8TOOL SPECIALIST8
16SENIOR EA316

<tbody>
</tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Put the following formulas in the indicated cells and then copy them down to the end of your data...

C2: =IF(B2="LEAD SENIOR LEVEL EA",A2,"")

D2: =IF(B2="SENIOR EA1",A2,"")

E2: =IF(B2="SENIOR EA2",A2,"")

F2: =IF(B2="SENIOR EA3",A2,"")

G2: =IF(B2="TOOL SPECIALIST",A2,"")

H2: =IF(B2="PM",A2,"")

I2: =IF(B2="GOV",A2,"")
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,588
Members
449,174
Latest member
chandan4057

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