Link to home
Create AccountLog in
Avatar of nomios
nomiosFlag for Afghanistan

asked on

Problem with IF formula

Hi--

I have a simple form where you fill out info, and it gets put in a review tab. Under "associate review" I want to be able to review the last 20 entries from the review sheet. And, I also have some reporting tabs.

I can't get the formulas to work in the associate review tab to pull the proper data from the review tab.  formula.xls
Avatar of gtgloner
gtgloner
Flag of Canada image

On your Associate Review sheet, you have #REF! errors in the formulas, these must be corrected for the VLOOKUP formulas on the Reviews sheet to work.
oops, sorry didn't read the question well enough!
Avatar of barry houdini
What does "last 20 entries" mean? You only have 13 entries there now so it's not very clear. I assume you want the lowest down positionally, so if there are entries in Review sheet down to row 100 that your "associate Review" will show the last 20, i.e. rows 81 to 100.

I think you have a more complex formula than you need - try this setup using a "helper" column. In Associate Review cell AE2 put this formula

=MAX(0,COUNTA(Reviews!A:A)-21)+ROWS(AD$1:AD2)

copy down to AE21

Now in Associate Review A2 put this formula

=IF(INDEX(Reviews!A:A,$AE2)="","",INDEX(Reviews!A:A,$AE2))

and copy across and down to AA21

Of course this will also pick up some errors from  the Review sheet. If you want to hide the errors try the above (second) formula with IFERROR, i.e.

=IFERROR(IF(INDEX(Reviews!A:A,$AE2)="","",INDEX(Reviews!A:A,$AE2)),"")

Hide column AE if required, see attached

regards, barry
27383737.xlsx
Avatar of nomios

ASKER

Hi,

Thank you for your reply, but, this isn't exactly what I'm looking for. Let me try to explain a little more to clarify.

This sheet is a method of tracking performance. I wanted it to show the last 20 performance reviews from one particular person. I don't want it to track every single reference created for every person. That's what the review tab is for.

So, in the associate review tab, I want to be able to type in a name in D24. Cells A2-A20 are set to equal the name from D24. Once this occurs, I want it to pull data from the last 20 entries in the review tab from that particular person's name.

ASKER CERTIFIED SOLUTION
Avatar of redmondb
redmondb
Flag of Afghanistan image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Thanks, Nomios!