Nested IF Statement Doesn't Work

Patikns23

New Member
Joined
Sep 21, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have a report out of our time clock that shows clock in/out times by employee and date. I have another Excel spreadsheet with EE IDs in column A and dates in row 1.

I wanted to do a lookup to the time clock report and when the EE ID and Date match, bring back the time clocked in.

I tried this nested IF statement; but, I get a #SPILL! area because the range is too big.

=IF('Employee Time by Date-Detailed Actual Times 1-01-23 through 1-23-23.xlsx'!$A:$A=A3,IF('Employee Time by Date-Detailed Actual Times 1-01-23 through 1-23-23.xlsx'!$B:$B=C1,'Employee Time by Date-Detailed Actual Times 1-01-23 through 1-23-23.xlsx'!$C:$C))

What formula can I use to get the intended result?

Thank you.
 

Attachments

  • Destination Spreadsheet.png
    Destination Spreadsheet.png
    32.8 KB · Views: 9
  • Source Spreadsheet.png
    Source Spreadsheet.png
    19.8 KB · Views: 8

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try

Book11
ABCDEFGH
1EE IDEE Name1/1/20231/2/20231/3/20231/4/20231/5/2023
21030#N/A#N/A#N/A#N/A5:37:00 AM
3
Destination
Cell Formulas
RangeFormula
C2:G2C2=INDEX(Source!$C$3:$C$10,MATCH($A2&C$1,Source!$A$3:$A$10&Source!$B$3:$B$10,0))
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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