+ Reply to Thread
Results 1 to 2 of 2

Indirect for year not working

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    Kuala Lumpur
    MS-Off Ver
    MS Office 2019
    Posts
    28

    Indirect for year not working

    Guys, this is straighfroward, I am trying to get a dependent drop down list from the list of years I have in my excel worksheet.I have already created a named range for all the respective years. What I am trying now is to get a dependent drop down list corresponding to the years entered. I understand that named ranges does not allow for numbers solely, which is why I named it for e.g _2023 ( instead of 2023), where I added the underscore in front. Next what I did was to use a combination of indrect and substitute to remove the underscore, and fetch my list on the name manager, however the data validation returns an error, and I am not able to get a result. Here is the formula I am using. Could anyone help me out here, I do not want to use anything vba or fancy to overcome this.


    At data validation, list
    =INDIRECT(SUBSTITUTE($G7," _",""))

    btw, G7 is the address where I key in my year number, 2023,2022, etc

    Thank you.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,858

    Re: Indirect for year not working

    Try

    =INDIRECT("_" & G7)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. INDIRECT FORMULA AUTOMATE, other then just YEAR (YYYY)
    By StephanRS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2023, 05:25 PM
  2. [SOLVED] INDIRECT not working
    By grcshekar in forum Excel General
    Replies: 4
    Last Post: 12-23-2022, 07:16 AM
  3. [SOLVED] indirect function looking for worksheet named after current year
    By BigPapaMurf in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-02-2020, 12:05 PM
  4. [SOLVED] Indirect Function Not working
    By dobracik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2016, 07:05 PM
  5. [SOLVED] Changing a formula that was working in the old year to work in the new year.
    By Manuel Pedro in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2014, 01:49 AM
  6. indirect not working
    By martindwilson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-27-2007, 08:56 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