Find the 10,000th row in larger data set

Iron Contributor

Hi,

 

I have large data set that changes rows every 10,000. I have large number of products, and looking to find the return for each. Every 10,000 it changes year. So i want to find the return from one year to another for each product. Looking to find find the 10,000th row for each column. Eg match asset code, "case" and match sim number. So row 10,001 will find cell 1 for each product and scenario.

 

Attached is an example.

 

Greatly appreciate any help or insight.

 

Kind regards,

 

 

9 Replies

I had a look at your file, but it is unclear to me what you are trying to achieve precisely. Can you please include (where possible) cell addresses in your request so we can see what information needs to be looked up where?

@calof1 

Hi try the following:

Home->Conditional Formatting->Highlight Cell Rules->More rules->Create your rule

 

You can select a specific color for the row number, as a rule, and filter by color. 

 

Or you can play around with MOD()ROW().

 

Hope my 1 cents worth helps you in the right direction. 

Hi@Jan Karel Pieterse 

 

Thanks for the message.

 

In my spreadsheet i am trying to find a cell based on the "Year", "Case Type", "stock type".

 

From the attached i want to find the cell highlighted Yellow. This would be cell D16. The criteria i want it to match is highlighted red, this will then we able to use the formula across the range of data.

 

Thank you kindly for your assistance.

 

 

@calof1 

Hi 

I see you have Macros in the workbook? Also noticed that the first 10000th rows are a year . Why don't you break your workbook into sheets named year 1, 2 and 3 each sheet will only have 10000 rows? Might make it easier for you? 

@calof1 Like in the attached? (green cells)

@Jan Karel Pieterse 

 

Hi 

is it wise to use array formulas which do slow down calculations given the already big size of the data set? Wondering. 

Well spotted. No it isn't of course. Better to add a helper column to the table which already combines the two lookup columns.

Hi@Jan Karel Pieterse 

 

Thank you for the assistance, this works for my criteria perfectly.

 

Thank you again for your help.

 

Kind regards,

You're welcome. Please keep in mind that this is a very slow formula, so if your file takes a long time to calculate you may benefit from adding a column which joins the two criteria and then do a match against that column.