Trying to find the last number in a row, but getting errors because of #N/A returns.

AustSportingPix

New Member
Joined
Oct 5, 2020
Messages
44
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
So my horse racing ratings are coming along, theyre finding winners and value runners.


My database table is a large file. In it, I want to find the peak return, average return (they're both done), plus the returns for each of the last 10 returns for each horse.

The table will have a column for each date from 2020/09/23 to as far as it will take me.

The problem is horses aren't running every day, so finding the returns for the last start to the 10th last isn't returning a value because the vLookups I'm using are returning a "#N/A" value if the horse didn't race that day.

The formula I'm using to find the last result is: =IFERROR(INDEX('All Horse Ratings.xlsx'!Allhorses[@[20200923]:[20201106]],1,COUNTA($Q2:$BI2)),"") (I change this in a few cells to get the last 10 results)
The formula I'm using to get the ratings into my database is: =IFNA(VLOOKUP($A2,INDIRECT("[ratings.xlsx]"&Allhorses[[#Headers],[20200923]]&"!$A:$C"),2,0),"")

What do I do to because I'm only getting errors or false returns.
 

Attachments

  • 2020.11.07-15.35_01.png
    2020.11.07-15.35_01.png
    194.5 KB · Views: 10

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
No, you would need
Excel Formula:
=IFERROR(INDEX($Q$1:$BK$1,AGGREGATE(14,6,(COLUMN($Q$1:$BK$1)-COLUMN($Q$1)+1)/($Q2:$BK2<>""),2)),"")
 
Upvote 0
Again thanks

I used to be so good with basic excel, then used mac for 15 years.
If I could buy you a beer I would
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,051
Members
452,542
Latest member
Bricklin

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