+ Reply to Thread
Results 1 to 4 of 4

Formula to count down x rows and return a value. Possible?

  1. #1
    Registered User
    Join Date
    09-13-2006
    Posts
    4

    Formula to count down x rows and return a value. Possible?

    I have a huge dataset. Column A is categories. Column B is a id value. Column C is a result value.

    eg

    Cars 1001 5.345
    Cars 1002 6.234
    Cars 1004 0.445
    Cars 1008 9.332
    Dogs 1001 0.345
    Dogs 1003 1.223
    Food 1001 3.523
    Food 1145 0.254
    Food 2512 3.346

    Table is sorted by Column A then Column B

    there are close to 1000 categories and almost 1,000,000 rows total

    I have another table with the same categories AND the number of rows down the list I want to report.

    eg in second table Cars 3 means I want to find the result value in table 1 for the third row of Cars data. (Cars 1004 0.445 so 0.445 is the answer I want)
    and Food 2 means I want to find the result value of the 2nd row of Food data (Food 1145 0.254 = 0.254)

    Is there a formula/function that lets me locate that easily. So count down rows where column A = Cars and the report the result of row x?

    Hope that made sense. Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,342

    Re: Formula to count down x rows and return a value. Possible?

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where G1 has the category and H1 has the row. Note that the MATCH will return the first row, hence the reason for subtracting 1.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-13-2006
    Posts
    4

    Re: Formula to count down x rows and return a value. Possible?

    Absolute genius. Thanks

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,342

    Re: Formula to count down x rows and return a value. Possible?

    You're welcome.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help using loops to count rows and return percentages
    By rosscortb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2018, 02:12 PM
  2. Formula Required to Count Rows only if condition is meet or else dont count
    By Shahbazk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2017, 08:39 AM
  3. [SOLVED] formula to return the count of a value
    By DAVIDZZZ in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-17-2016, 09:21 PM
  4. Count, sum and return value formula
    By lar56 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2015, 05:46 PM
  5. Formula to return count, if two critera are met.
    By SeanLightfoote in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2014, 12:51 PM
  6. [SOLVED] Formula with ROWS Function appears not to return correct number of rows
    By rzw30 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-22-2013, 07:05 AM
  7. Replies: 2
    Last Post: 03-30-2010, 12:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1