Lookup name and return dependant formula

Status
Not open for further replies.

anna82marie

New Member
Joined
Jan 22, 2014
Messages
15
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I think I've over stretched myself with this one:

I've created training matrix for a maintenance company with 300+ employees. I've figured out a formula to return In date, upcoming (90 days), and expired courses for al employees.

=IF(IF(I$3="N/A",COUNTIF(I$9:I$1001,"<>"&""),IF(I$3=Data!$A$25,COUNTIF(I$9:I$1001,">"&Data!$C$32),IF(I3=Data!$A$26,COUNTIF(I$9:I$1001,">"&Data!$C$33),IF(I$3=Data!C27,COUNTIF(I$9:I$1001,">"&Data!$C$34),IF(I$3=Data!$A$28,COUNTIF(I$9:I$1001,">"&Data!$C$35),IF(I$3=Data!$A$29,COUNTIF(I$9:I$1001,">"&Data!$C$36),IF(I$3=Data!$A$30,COUNTIF(I$9:I$1001,">"&Data!$C$37),"N/A")))))))=0,"N/A",IF(I$3="N/A",COUNTIF(I$9:I$1001,"<>"&""),IF(I$3=Data!$A$25,COUNTIF(I$9:I$1001,">"&Data!$C$32),IF(I3=Data!$A$26,COUNTIF(I$9:I$1001,">"&Data!$C$33),IF(I$3=Data!C27,COUNTIF(I$9:I$1001,">"&Data!$C$34),IF(I$3=Data!$A$28,COUNTIF(I$9:I$1001,">"&Data!$C$35),IF(I$3=Data!$A$29,COUNTIF(I$9:I$1001,">"&Data!$C$36),IF(I$3=Data!$A$30,COUNTIF(I$9:I$1001,">"&Data!$C$37),"N/A"))))))))

Now I need to amend it to return the data for a specific employee selected from a drop down, but I just can't get my head around it...HELP!
 
Last edited by a moderator:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Not saying I'll answer this but this looks odd (see red highlights)

=IF(IF(I$3="N/A",COUNTIF(I$9:I$1001,"<>"&""),IF(I$3=Data!$A$25,COUNTIF(I$9:I$1001,">"&Data!$C$32),IF(I3=Data!$A$26,COUNTIF(I$9:I$1001,">"&Data!$C$33),IF(I$3=Data!C27,COUNTIF(I$9:I$1001,">"&Data!$C$34),IF(I$3=Data!$A$28,COUNTIF(I$9:I$1001,">"&Data!$C$35),IF(I$3=Data!$A$29,COUNTIF(I$9:I$1001,">"&Data!$C$36),IF(I$3=Data!$A$30,COUNTIF(I$9:I$1001,">"&Data!$C$37),"N/A")))))))=0,"N/A",IF(I$3="N/A",COUNTIF(I$9:I$1001,"<>"&""),IF(I$3=Data!$A$25,COUNTIF(I$9:I$1001,">"&Data!$C$32),IF(I3=Data!$A$26,COUNTIF(I$9:I$1001,">"&Data!$C$33),IF(I$3=Data!C27,COUNTIF(I$9:I$1001,">"&Data!$C$34),IF(I$3=Data!$A$28,COUNTIF(I$9:I$1001,">"&Data!$C$35),IF(I$3=Data!$A$29,COUNTIF(I$9:I$1001,">"&Data!$C$36),IF(I$3=Data!$A$30,COUNTIF(I$9:I$1001,">"&Data!$C$37),"N/A"))))))))

C27 not A27 ?
I say this as your IFs are checking against A25 A26 A28 A29 A30 but not A27 ?
 
Last edited:
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,216,574
Messages
6,131,499
Members
449,653
Latest member
aurelius33

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