• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

If nested Function for Dependant DropDown|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / If nested Function for Dependant DropDown|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…If nested Function for Dependant Dr…
sp_PrintTopic sp_TopicIcon
If nested Function for Dependant DropDown
Avatar
Wonder Woman
Member
Members
Level 0
Forum Posts: 30
Member Since:
December 7, 2020
sp_UserOfflineSmall Offline
1
November 7, 2021 - 2:47 pm
sp_Permalink sp_Print sp_EditHistory

Hi 

I am having trouble on the below formula.... need a fresh pair of eyes. It for a drop down data validation list.

I keep getting an error message keeps saying that a "Named Range I specify cannot be found" but they are all there... I am so confused. I have checked and double checked again in Name Manager and the tables are all there and all spelt correctly. where am I going wrong... besides the fact that my formula my be incorrect.

and I have checked my tables in the Name Manager and they are all scoped for the workbook.

 

=INDIRECT(IF(D3=“Corporate”, “tbl_Non”, IF(D3=”Specific Permit/Facility Documentation”, tbl_Permits, IF(D3=“Multiple Permit/Facility Documentation”, “tbl_Multi”, “tbl_Facility” ))))

 

based on the value in cell D3, I want it to return the corresponding table in E3 as a drop down. The above didn't work and I don't understand why.

my Table Names are correct.

and the dropdown values in D3 are correct and correspond correctly. 

I did a nested IF function, am I using the incorrect function?

 

thanks

sp_AnswersTopicSeeAnswer See Answer
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
November 7, 2021 - 11:23 pm
sp_Permalink sp_Print

Hello,

Seems that you get an error if D3 = Specific Permit/Facility Documentation, else it should work. Is that correct?

What I see you are missing in your formula is a pair of quotation marks, highlighted in red below.
=INDIRECT(IF(D3=“Corporate”, “tbl_Non”, IF(D3=”Specific Permit/Facility Documentation”, "tbl_Permits", IF(D3=“Multiple Permit/Facility Documentation”, “tbl_Multi”, “tbl_Facility” ))))

Br,
Anders

Avatar
Wonder Woman
Member
Members
Level 0
Forum Posts: 30
Member Since:
December 7, 2020
sp_UserOfflineSmall Offline
3
November 8, 2021 - 8:46 am
sp_Permalink sp_Print

Hi 

thanks, but that is not the problem... I just omitted the quotation marks above when typing, but I tried again just in case, and still get the error message "A named range you specified cannot be found".

the below formula should work. What am I missing?

=INDIRECT(IF(D3=“Corporate”, “tbl_Non”, IF(D3=”Specific Permit/Facility Documentation”, "tbl_Permits", IF(D3=“Multiple Permit/Facility Documentation”, “tbl_Multi”, “tbl_Facility” ))))

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 215
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
4
November 9, 2021 - 6:32 am
sp_Permalink sp_Print

Could you upload a sample worksheet that shows your problem. It would be easier to help troubleshoot your issue if we can see what you have done in the workbook.

Avatar
Wonder Woman
Member
Members
Level 0
Forum Posts: 30
Member Since:
December 7, 2020
sp_UserOfflineSmall Offline
5
November 9, 2021 - 9:13 am
sp_Permalink sp_Print

Hi Jessica

thanks for your reply. Sample worksheet attached.

on the "CPB Doc Request" tab, in E3 I need the drop down to list the correct corresponding table from the value in D3.

If D3 = "Corporate" then table "tbl_Non"

If D3 = "Specific Permit/Facility Documentation" then table "tbl_Permits"

IF D3 = "Multiple Permit/Facility Documentation" then table "tbl_Multi"

otherwise, if any other value in D3, then table "tbl_Facility" 

these dropdown lists are in worksheet tab "CPC_Corp_Spec_Multi_Ops_Skid"

thanks so much for having a look.

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 215
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
6
November 10, 2021 - 3:11 am
sp_Permalink sp_Print

I got the indirect function to work, it looks like there are spaces in your formula, maybe that's your issue? Either way, attached workbook, hope it helps. 🙂

sp_AnswersTopicAnswer
Answers Post
Avatar
Wonder Woman
Member
Members
Level 0
Forum Posts: 30
Member Since:
December 7, 2020
sp_UserOfflineSmall Offline
7
November 10, 2021 - 10:20 am
sp_Permalink sp_Print

oh that's great, it is working perfectly now ... is that all that was wrong with it, just some spaces..... doh!! so fustrating.

thanks for taking a look, sometimes its just a fresh pair of eyes.

thanks Jessica!

Kind Regards

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Kathleen Silva
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Forum Stats:
Groups: 3
Forums: 24
Topics: 6352
Posts: 27779

 

Member Stats:
Guest Posters: 49
Members: 32319
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.