+ Reply to Thread
Results 1 to 6 of 6

Dynamic range formula which finds the last cell in a dataset as the formula range too

  1. #1
    Registered User
    Join Date
    02-13-2018
    Location
    Midlands
    MS-Off Ver
    365 Version 2208
    Posts
    10

    Dynamic range formula which finds the last cell in a dataset as the formula range too

    Hi all,

    I am hoping someone can help as I think I'm close, but am now going round in circles. I have attached example spreadsheet for ease of understanding.

    I have a short list of Task codes "data indicators" and an extensive cost report to which these tasks codes appear. The cost report gets larger each month. What i am trying to do is identify new Task Codes in the cost report as and when i paste this report into my master template.

    Ideally i want to produce a list of "new Task Codes" when i hard code the cost report into my template.

    I am trying to use a "=ISTEXT(VLOOKUP(D4:D2196,'Cost Code Setup'!$M$7:$M$206,1,FALSE))" which is returning False where a new cost code is added to the cost list. I was then going to try and convert the False into "The new Task Code" then simply use a unique formula to list these, so i never need to touch, drag down etc the formula.)

    The problem i am having is the lookup range at the start of the formula D4:D2196. This will require me to change the range each month as new rows of data are added to the bottom of the report. I ned this to be dynamic so i never need to touch the formula again.

    Can anyone help please?

    Workbook Example.xlsx


    If you could solve the False into the Task Code also, that would be delightful!


    NOTE: Just to clarify, the formula i am trying to write is in Cell F8. Ideally the "TRUE" results will be blank and the "FALSE" results will equal the Task Code in Column I. I can then use unique on this to identify the "New Task Codes" which need to be added to the master list in Column A. The data set in G to J will expand / grow downwards each month
    Last edited by Coopereto; 05-25-2023 at 10:58 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Dynamic range formula which finds the last cell in a dataset as the formula range too

    Administrative Note:

    Is your forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Dynamic range formula which finds the last cell in a dataset as the formula range too

    I am assuming based on the language used in your request that you are using MS365. Is this what you mean?

    =LET(nc,IF(I8:I20000="","",ISTEXT((VLOOKUP(I8:I20000,A8:A12,1,FALSE)))),c,I8:I20000,UNIQUE(FILTER(c,nc=FALSE)))

    If you are NOT using Excel 2021 or MS365, then this won't work.

  4. #4
    Registered User
    Join Date
    02-13-2018
    Location
    Midlands
    MS-Off Ver
    365 Version 2208
    Posts
    10

    Re: Dynamic range formula which finds the last cell in a dataset as the formula range too

    Hello

    I am using 365 - i have just updated in my profile on here.

    Thank you!

    I will give this a go now

  5. #5
    Registered User
    Join Date
    02-13-2018
    Location
    Midlands
    MS-Off Ver
    365 Version 2208
    Posts
    10

    Re: Dynamic range formula which finds the last cell in a dataset as the formula range too

    Thank you very much!!!

    Works perfectly

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Dynamic range formula which finds the last cell in a dataset as the formula range too

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) 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 all those who offered help.

+ 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] Create a dynamic named range or formula to change the range in the forecast formula
    By christhomas99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-18-2022, 08:02 PM
  2. Replies: 1
    Last Post: 04-15-2019, 12:14 AM
  3. [SOLVED] SUMIF formula with dynamic column range and then expand the width of SUM range
    By gravythief in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2017, 08:36 AM
  4. [SOLVED] chart based on dynamic range which resizes as per data in range-formula / vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2014, 04:02 PM
  5. Adding a formula to a cell adjacent to a dynamic dataset
    By Alpy261 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2013, 05:12 PM
  6. Dynamic cell range based on a formula
    By mljs54 in forum Excel General
    Replies: 1
    Last Post: 10-20-2011, 09:59 AM
  7. Need a formula that finds the last used cell in a range
    By samfw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2006, 11:55 AM

Tags for this Thread

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