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!

[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Hours[/TD]
[TD]Role Name[/TD]
[TD]LSEA[/TD]
[TD]SEA1[/TD]
[TD]SEA2[/TD]
[TD]SEA3[/TD]
[TD]Tools[/TD]
[TD]PM[/TD]
[TD]GOV[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]SENIOR EA3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]16[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]LEAD SENIOR LEVEL EA[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]GOV[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]SENIOR EA3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]PM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]TOOL SPECIALIST[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]SENIOR EA3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]16[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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