Previous Xup number .

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
701
Office Version
  1. 2016
Platform
  1. Windows
Hello all ,

I am needing to get a macro that gives me the results I have in cols
BJ and BK . I tri
I have entered 2 x new dates in col B hilited in yellow .
I know horse Magic is xup 5 today col BI . Cell B17
I know horse Tavistock is xup 2 today col BI. Cell B25

Just need to look back for exact same xup number (hilited in brown) and
put results into cols BJ:BK

If previous xup number doesn’t exist , leave blank .

Looking for any ideas .
Thanks .
Excel Workbook
BAHAIAJALAOBIBJBK
1DateHorseNameAgeGenderFinishingpositionDecimalmarginXupPlMg
26/05/2016Magic (AUS)3g810.51
31/06/2016Magic (AUS)3g919.62
48/12/2016Magic (AUS)4g53.21
524/12/2016Magic (AUS)4g45.12
614/01/2017Magic (AUS)4g116.33
722/01/2017Magic (AUS)4g64.14
89/02/2017Magic (AUS)4g63.75
98/03/2017Magic (AUS)4g44.66
1024/03/2017Magic (AUS)4g117
111/04/2017Magic (AUS)4g10.28
1215/04/2017Magic (AUS)4g44.89
1322/09/2017Magic (AUS)5g85.21
146/10/2017Magic (AUS)5g41.12
1528/10/2017Magic (AUS)5g523
1611/11/2017Magic (AUS)5g11.84
179/12/2017Magic (AUS)5g563.7
1822/03/2017Tavistock3f21.31
199/04/2017Tavistock3f30.72
2025/04/2017Tavistock3f1453
2117/05/2017Tavistock3f12.34
2217/06/2017Tavistock3f41.85
238/07/2017Tavistock3f94.26
2417/11/2017Tavistock4m11.31
259/12/2017Tavistock4m230.7
Sheet1
 
Last edited:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Find last value of same enter result .

Hello all ,

Here I have 3 x different horses .
Needing to find last cell entry in col BI for each horse , then looking back until same
number is found in col BI .

Then look left to cols AL and AO and result into cols BJ , BK .

Example , Farbaric last entry col BI is 3 in cell BI26 .
Previous 3 mentioned is in cell BI22 .
Results same as cells BJ26:BK26 .

Hopefully macro will work as I have over 440,000 rows .

Thanks .
Excel Workbook
AHALAOBIBJBK
1HorseNameFinishingpositionDecimalmarginXupPlMg
2Bahhare Babe119.21
3Bahhare Babe231119.2
4Bahhare Babe96.7123
5Bahhare Babe41.32
6Bahhare Babe1210.33
7Bahhare Babe1310.2196.7
8Bahhare Babe51.4241.3
9Bahhare BabeFF11310.2
10Sarbara Ann20.51
11Sarbara Ann10.42
12Sarbara Ann36.23
13Sarbara Ann82.4120.5
14Sarbara Ann42.6210.4
15Sarbara Ann41.9182.4
16Sarbara Ann51.8141.9
17Sarbara AnnRORO242.6
18Sarbara Ann10.1336.2
19Farbaric10171
20Farbaric13.811017
21Farbaric20.52
22Farbaric20.33
23Farbaric61.74
24Farbaric11.7113.8
25Farbaric44.1220.5
26Farbaric10.1320.3
Sheet1
 
Upvote 0
Re: Find last value of same enter result .

I have managed to find a post by Aladin Akyurek Re: Return last value
where by pure luck I changed this function to suit my results .

=IFERROR(LOOKUP(9.99999999999999E+307,1/($BI$1:BI1=$BI2),$AL$1:AL1),"")
=IFERROR(LOOKUP(9.99999999999999E+307,1/($BI$1:BI1=$BI2),$AO$1:AO1),"")

If I could just get this function to acknowledge only one horse and not put false data in
relating to another as in cells BL10:BM12 , BL19:BM19
and BL21:BM22 .

A macro of this would be the ultimate solution . I will plod on .

Thanks .
 
Last edited:
Upvote 0
Re: Find last value of same enter result .

Ok sorry for that when can i start a new thread as no body will attempt to answer this now .
Thanks .
 
Upvote 0
Re: Find last value of same enter result .

Ok sorry for that when can i start a new thread as no body will attempt to answer this now .
Why not?

If you do not receive a response, you can simply "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
 
Upvote 0
Re: Find last value of same enter result .

bump , thanks .
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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