+ Reply to Thread
Results 1 to 10 of 10

Find the Nth value and return value

  1. #1
    Registered User
    Join Date
    08-15-2023
    Location
    Davenport, IA
    MS-Off Ver
    365
    Posts
    7

    Find the Nth value and return value

    Hello,

    I have an existing method of finding the Nth value and returning the results via a formula, however, my data set has grown considerably and the time to calculate has become inefficient. Can this be rewritten into a macro to process faster?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Find the Nth value and return value

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-15-2023
    Location
    Davenport, IA
    MS-Off Ver
    365
    Posts
    7

    Re: Find the Nth value and return value

    Fluff13,

    For 15,000 rows it seems to take longer, also I tried to put the {} around the formula and I #CALC! error.
    Last edited by Yelir; 03-19-2024 at 02:58 PM.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Find the Nth value and return value

    Do not use Ctrl Shift enter, you never need to do that with 365.
    How many distinct values have you in col A?

  5. #5
    Registered User
    Join Date
    08-15-2023
    Location
    Davenport, IA
    MS-Off Ver
    365
    Posts
    7

    Re: Find the Nth value and return value

    Thank for the advise Fluff13,

    Today I have 15818 rows of data containing 255 unique values in column A.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Find the Nth value and return value

    255 distinct values shouldn't take that long. Try it on a new sheet without any other formulas.

  7. #7
    Registered User
    Join Date
    08-15-2023
    Location
    Davenport, IA
    MS-Off Ver
    365
    Posts
    7

    Re: Find the Nth value and return value

    Fluff13,

    I am getting about a minute to refresh calc, and still getting a #CALC! returning of the values. I have tried the following;
    1. Created a new sheet with no other formulas
    2. Altered the range from 1,500 to 15,0000 and vice versa
    3. Used without {}
    4. Not sure if this is an issue or not but I also tried locking the Range for each area

    All 4 have not worked for me - Any other thoughts on a different approach?
    Last edited by Yelir; 03-19-2024 at 08:52 PM.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Find the Nth value and return value

    Did you just put the formula in C2 only & let it spill down?

  9. #9
    Registered User
    Join Date
    08-15-2023
    Location
    Davenport, IA
    MS-Off Ver
    365
    Posts
    7

    Re: Find the Nth value and return value

    I did, Not sure why this is not working when I put a larger data set in - Would it matter if the I have cells that contain all numbers as text? I figured as long as there is a matching criteria it doesn't matter which format the values are in.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Find the Nth value and return value

    As long as you get the correct results, the numbers as text shouldn't be a problem.
    With you formula when it re-calculates how many threads does it show being used on the status bar?

+ 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. Replies: 0
    Last Post: 09-22-2018, 04:10 AM
  2. [SOLVED] Find a value and return the value from the next row
    By XLVBA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2014, 11:02 AM
  3. How to find the annualized return from a monthly return series
    By tulasiram in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2013, 05:39 AM
  4. [SOLVED] Find match, find related cell and return that number
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 06:46 AM
  5. Find value and return value next to it?
    By martin3000 in forum Excel General
    Replies: 1
    Last Post: 11-02-2010, 04:38 PM
  6. How to find and return value
    By Marta Maria in forum Excel General
    Replies: 4
    Last Post: 11-26-2007, 01:57 PM
  7. [SOLVED] find & return value
    By Melissa in forum Excel General
    Replies: 3
    Last Post: 09-23-2005, 07:05 AM

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