Home

Find the 10,000th row in larger data set

%3CLINGO-SUB%20id%3D%22lingo-sub-738941%22%20slang%3D%22en-US%22%3EFind%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-738941%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20large%20data%20set%20that%20changes%20rows%20every%2010%2C000.%20I%20have%20large%20number%20of%20products%2C%20and%20looking%20to%20find%20the%20return%20for%20each.%20Every%2010%2C000%20it%20changes%20year.%20So%20i%20want%20to%20find%20the%20return%20from%20one%20year%20to%20another%20for%20each%20product.%20Looking%20to%20find%20find%20the%2010%2C000th%20row%20for%20each%20column.%20Eg%20match%20asset%20code%2C%20%22case%22%20and%20match%20sim%20number.%20So%20row%2010%2C001%20will%20find%20cell%201%20for%20each%20product%20and%20scenario.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20an%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreatly%20appreciate%20any%20help%20or%20insight.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-738941%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECharting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-746994%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-746994%22%20slang%3D%22en-US%22%3E%3CP%3EI%20had%20a%20look%20at%20your%20file%2C%20but%20it%20is%20unclear%20to%20me%20what%20you%20are%20trying%20to%20achieve%20precisely.%20Can%20you%20please%20include%20(where%20possible)%20cell%20addresses%20in%20your%20request%20so%20we%20can%20see%20what%20information%20needs%20to%20be%20looked%20up%20where%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747195%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747195%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F364226%22%20target%3D%22_blank%22%3E%40calof1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20try%20the%20following%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EHome-%26gt%3BConditional%20Formatting-%26gt%3BHighlight%20Cell%20Rules-%26gt%3BMore%20rules-%26gt%3BCreate%20your%20rule%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20can%20select%20a%20specific%20color%26nbsp%3Bfor%20the%20row%20number%2C%20as%20a%20rule%2C%20and%20filter%20by%20color.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOr%20you%20can%20play%20around%20with%20MOD()ROW().%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHope%20my%201%20cents%20worth%20helps%20you%20in%20the%20right%20direction.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749126%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749126%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20spreadsheet%20i%20am%20trying%20to%20find%20a%20cell%20based%20on%20the%20%22Year%22%2C%20%22Case%20Type%22%2C%20%22stock%20type%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20the%20attached%20i%20want%20to%20find%20the%20cell%20highlighted%20Yellow.%20This%20would%20be%20cell%20D16.%20The%20criteria%20i%20want%20it%20to%20match%20is%20highlighted%20red%2C%20this%20will%20then%20we%20able%20to%20use%20the%20formula%20across%20the%20range%20of%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20kindly%20for%20your%20assistance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749290%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749290%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F364226%22%20target%3D%22_blank%22%3E%40calof1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3EI%20see%20you%20have%20Macros%20in%20the%20workbook%3F%20Also%20noticed%20that%20the%20first%2010000th%20rows%20are%20a%20year%20.%20Why%20don't%20you%20break%20your%20workbook%20into%20sheets%20named%20year%201%2C%202%20and%203%20each%20sheet%20will%20only%20have%2010000%20rows%3F%20Might%20make%20it%20easier%20for%20you%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749412%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749412%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F364226%22%20target%3D%22_blank%22%3E%40calof1%3C%2FA%3ELike%20in%20the%20attached%3F%20(green%20cells)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749433%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749433%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20it%20wise%20to%20use%20array%20formulas%20which%20do%20slow%20down%20calculations%20given%20the%20already%20big%20size%20of%20the%20data%20set%3F%20Wondering.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749494%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749494%22%20slang%3D%22en-US%22%3EWell%20spotted.%20No%20it%20isn't%20of%20course.%20Better%20to%20add%20a%20helper%20column%20to%20the%20table%20which%20already%20combines%20the%20two%20lookup%20columns.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-751415%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751415%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20assistance%2C%20this%20works%20for%20my%20criteria%20perfectly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20again%20for%20your%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-751882%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20the%2010%2C000th%20row%20in%20larger%20data%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751882%22%20slang%3D%22en-US%22%3EYou're%20welcome.%20Please%20keep%20in%20mind%20that%20this%20is%20a%20very%20slow%20formula%2C%20so%20if%20your%20file%20takes%20a%20long%20time%20to%20calculate%20you%20may%20benefit%20from%20adding%20a%20column%20which%20joins%20the%20two%20criteria%20and%20then%20do%20a%20match%20against%20that%20column.%3C%2FLINGO-BODY%3E
calof1
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.
Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
201 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies