Extract and Move Data from one row to another

Celticshadow

Active Member
Joined
Aug 16, 2010
Messages
421
Office Version
  1. 365
Platform
  1. Windows
Hi Forum

In relation to this previous question and solution successfully given (Extract Data from Row) may I ask forum if they could help me out further with a jockey/trainer report that I receive each day also. The report shows each jockey and trainer with their corresponding strike rates and then underneath each combination are then shown those combinations times and horses entered for races that same day. What I would like to do is take each horse along with the race time and place it in the same horizontal line as the combinations and at the end of the row.

I have attached a google docs link to hopefully show what I would like the formula to do. If I may also ask would it be possible to show how the formula is working as I do have other reports that would need something similar and if I knew what the formula is doing then I might have a better understanding and hopefully attempt something myself. Many thanks in advance.

Regards



PS The solution is for an excel sheet and google docs is shown for explanation only.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Is this what you are after?

Jockey Trainer Rpt.xlsx
ABIJKLM
1TrackJockeyStrike% (track)
2ExeterBament, Mr J J100%4.08 Looking For Larry (IRE)
34.08 Looking For Larry (IRE) 
4ExeterDingle, Rex100%4.43 Kocktail Bleu (FR)
54.43 Kocktail Bleu (FR) 
6ChepstowStevens, Miss A100%4.30 Pride Of Paris (IRE)
74.30 Pride Of Paris (IRE) 
8NavanHarvey, A100%4.20 Street Value (IRE)
94.20 Street Value (IRE) 
10NavanOBrien, P M100%3.12 Comeonarchie (IRE)
113.12 Comeonarchie (IRE) 
12ExeterGodfrey, Ben100%4.43 Ilostasock (IRE)
134.43 Ilostasock (IRE) 
14ChepstowJones, Ben R50%3.55 Decorated
153.55 Decorated 
16ExeterCobden, Harry50%4.08 Haas Boy (FR)
174.08 Haas Boy (FR) 
18ExeterBass, David50%3.33 Strackan
193.33 Strackan 
20NavanLavery, Mr D G50%4.55 Noticebox
214.55 Noticebox 
22ChepstowJones, Ben R42.86%1.20 Ben Solo (IRE)3.20 House Of Stories (IRE)4.30 River Voyage (IRE)
231.20 Ben Solo (IRE) 
243.20 House Of Stories (IRE) 
254.30 River Voyage (IRE) 
26NavanByrnes, Mr P41.67%4.20 Whateys Quest (IRE)
274.20 Whateys Quest (IRE) 
28ExeterBoinville, Nico39.13%1.30 As The Fella Says (IRE)3.33 Jeriko Du Reponet (FR)
291.30 As The Fella Says (IRE) 
303.33 Jeriko Du Reponet (FR) 
31ExeterCobden, Harry33.33%1.30 Sorceleur (FR)2.30 Regents Stroll (IRE)3.33 Mofasa4.43 Jeriko Place (FR)
321.30 Sorceleur (FR) 
332.30 Regents Stroll (IRE) 
343.33 Mofasa 
354.43 Jeriko Place (FR) 
36
Sheet1
Cell Formulas
RangeFormula
J2:J21,J23:J27,J29:J30,J32:J35,J31:M31,J28:K28,J22:L22J2=IF(I2="","",TRANSPOSE(A3:INDEX(A3:A$100,IFERROR(MATCH("?*",B3:B$100,0)-1,COUNTA(A3:A$100)))))
 
Upvote 0
Solution
Hi Peter_SSs

Many thanks for your above formula, I am delighted to say that it works an absolute treat and I am extremely grateful for your help and expertise which as usual is invaluable.

I understand the formula in so far as it looks for the percentage in I2, and then the transposing of the data in column A, However I am unsure as to what the rest of the formula is saying and doing from the IFERROR part onward. I would be grateful if you have the time to explain it further at your convenience but if not then no worries as your solution itself is more than generous.

Regards
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

I am unsure as to what the rest of the formula is saying and doing from the IFERROR part onward. I would be grateful if you have the time to explain it further at your convenience but if not then no worries as your solution itself is more than generous.
When the formula finds a value in column I, it needs to grab all the values in column A down to the line before the next 'section'. That 'section' starts when a new jockey appears in column B (at least that's how I did it)
Mostly the values you want are found with this
A3:INDEX(A3:A$100,MATCH("?*",B3:B$74,0)-1)
That is, start at the row below the formula and then match the next non-blank (?* are wildcards meaning find at least one character) in column B and come up one row
Then transpose to write the results across the row.

The problem is the last section where we have a value in row 31 in column I but no "next jockey" in column B. In this case the formula snippet above returns an error so you wouldn't get those last 4 blue values returned, only an error. The IFERROR then says in that case instead of looking for the next jockey, just count how many rows below row 31 have values in column A. this returns 4 so you get those last 4 results after all.

Instead of IFERROR, I possibly should have used the specific error #NA and it would have been as below, but no big deal
=IF(I2="","",TRANSPOSE(A3:INDEX(A3:A$100,IFNA(MATCH("?*",B3:B$100,0)-1,COUNTA(A3:A$100)))))
 
Upvote 0

Forum statistics

Threads
1,226,463
Messages
6,191,181
Members
453,646
Latest member
BOUCHOUATA

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