Using Multiple IF Statements

ddhawks

New Member
Joined
Jul 6, 2016
Messages
20
Hi Everyone!

I'm working on a spreadsheet where everyone's work hours are tied to the project he or she is working on. For example, I have the name of the person in Column D, and Column R is the hours billed to the job. The hours billed to the job comes from a list at the bottom of the spreadsheet which is linked to another spreadsheet and is updated monthly. This data is found in Column B, Rows 40-59, with each row the number of hours each person worked.

Here is the formula I'm using: =IF(D4="Sean Mahoney",B44,IF(D4="Brad Stabenow",B45,IF(D4="Nicole Anderson",B41,IF(D4="Matt Huderski",B43,IF(D4="Shea Groom",B42,IF(D4="James Sherry",B52))))))

The very first row under PM Hours Billed to Jobs is correct. None of the others are. Is there a better formula to use? I copied and pasted my spreadsheet below because I couldn't figure out to insert a link. If anyone can help me out, I'd greatly appreciate it.

Thank you!
Darleen


Job #ClosedJob NameProject ManagerSuperintendentPM Hours Billed To JobsSupt Hours Billed To Jobs
2016-474RMR US Treasury TISean MahoneyJames Martin5.0010.00
2016-495CRMC Dialysis AdditionBrad StabenowDan Ozborn7.0012.00
2016-496Swope OBGYN & PediatricNicole AndersonTroy McKitrick4.0011.00
2017-497Sean MahoneyDerrick Shanks8.0017.00
2017-509Matt HuderskiJames Sherry8.0013.00
2017-511Matt HuderskiTroy McKitrick9.0011.00
2017-513Shea GroomJohn Alexander9.008.00
2017-518Nicole AndersonJames Sherry9.0013.00
2017-520Sean MahoneyJake Lawson13.0015.00
2017-523Sean MahoneyJames Martin14.0010.00
2017-527Nicole AndersonMitch Welty12.0014.00
2017-529Brad StabenowGus Purdum17.0020.00
2017-531Matt HuderskiAaron Hankammer16.007.00
2017-532James SherryJames Sherry0.0013.00
2017-533Shea GroomJohn Alexander17.008.00
2017-534Nicole Anderson17.00
2017-535Sean MahoneyJames Martin0.0010.00
2017-536Matt Huderski0.00
2017-537Shea Groom0.00
2017-538Brad Stabenow0.00
2017-539Matt Huderski0.00
2017-540James SherryJames Sherry0.0013.00
2017-541Shea GroomAaron Hankammer0.007.00
2017-542Shea GroomAaron Hankammer0.007.00
2017-543Matt HuderskiTroy McKitrick0.0011.00
2017-544Nicole Anderson0.00
2018-545Nicole AndersonJames Sherry0.0013.00
Hrs to Jobs
Don1.00
Nicole2.00
Shea3.00
Matt4.00
Sean5.00
Brad6.00
Aaron7.00
John8.00
Bob9.00
James M10.00
Troy11.00
Dan12.00
James S13.00
Mitch14.00
Jacob L15.00
Jeffrey M16.00
Derrick17.00
Jacob A18.00
Jeff P19.00
Gus20.00

<tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
You would use a Vlookup
=vlookup("NAME",TABLE,column number that you wish to return,0)
 
Upvote 0

Excel 2010
ABCDEFGH
3Job #ClosedJob NameProject ManagerSuperintendentPM Hours Billed To JobsSupt Hours Billed To Jobs
42016-474RMR US Treasury TISean MahoneyJames Martin510
4b
Cell Formulas
RangeFormula
F4=VLOOKUP(D4,A33:B52,2,0)
H4=VLOOKUP(E4,A33:B52,2,0)


N.B. The names must be consistent i.e. The list with the hours would have to include both first and last names.
 
Last edited:
Upvote 0
Worksheet Formulas
CellFormula
F4=VLOOKUP(D4,A33:B52,2,0)
H4=VLOOKUP(E4,A33:B52,2,0)

<tbody>
</tbody>

<tbody>
</tbody>



N.B. The names must be consistent i.e. The list with the hours would have to include both first and last names.[/QUOTE]

This is EXACTLY what I needed. Thank you so much for your help!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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