• 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
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Is it appropriate to use IF and INDIRECT Function for the attached sheet.|Dashboards & Charts|Excel Forum|My Online Training Hub

You are here: Home / Is it appropriate to use IF and INDIRECT Function for the attached sheet.|Dashboards & Charts|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 ForumDashboards & ChartsIs it appropriate to use IF and IND…
sp_PrintTopic sp_TopicIcon
Is it appropriate to use IF and INDIRECT Function for the attached sheet.
Avatar
Faryal Shahabuddin

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
July 1, 2020
sp_UserOfflineSmall Offline
1
July 1, 2020 - 1:30 pm
sp_Permalink sp_Print

Hello Mynda,

I am wondering if you can help me with a query.

I am preparing a project tracker, In which certain projects have sub-projects and some doesn't. I am thinking to use the following formula for validating the data in Column D of the first sheet of the attached workbook.

 

IF(INDIRECT("B6")="CO2_Storgae",N/A,IF(INDIRECT("B6")="Coal_Seam_Gas_CSG",N/A,IF(INDIRECT("B6")="Conventional_Gas",N/A,IF(INDIRECT("B6")="Geothermal_Energy",N/A,IF(INDIRECT("B6")="Prescribed_ERA_05_Alcohol_Production",N/A,IF(INDIRECT("B6")="Prescribed_ERA_10_Gas_Production",N/A,IF(INDIRECT("B6")="Prescribed_ERA_15_Fuel_Burning",N/A,IF(INDIRECT("B6")="Prescribed_ERA_28_Sugar_Milling_Refining",N/A,IF(INDIRECT("B6")="Prescribed_ERA_63_Sewage_Treatment",N/A,IF(INDIRECT("B6")="Water_Act",N/A,Select Value))))))))))

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
July 1, 2020 - 8:09 pm
sp_Permalink sp_Print

Hi Faryal,

INDIRECT definitely isn't the way to go about it. Why don't you just populate the Prescribed ERA Threshold using a lookup formula like VLOOKUP or INDEX & MATCH? It looks like there is only one outcome per primary activity. e.g. in cell D6 of the 'To be used for data entry' sheet enter this formula:

=INDEX(Table2[Prescribed ERA 06 Asphalt Manufacturing],MATCH('To be used for Data Entry'!B6,Table2[Primary Activity],0))

Mynda

Avatar
Faryal Shahabuddin

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
July 1, 2020
sp_UserOfflineSmall Offline
3
July 2, 2020 - 4:01 pm
sp_Permalink sp_Print

Thank you Mynda.

 

Unfortunately, it didn't work.. It is giving me a reference error.

 

I am attaching the sheet for your perusal.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
July 2, 2020 - 4:15 pm
sp_Permalink sp_Print

Hi Faryal,

Remove the data validation from column D in the 'To be used for data entry' sheet, then enter this formula (exactly):

=INDEX(Table2[Prescribed ERA 06 Asphalt Manufacturing],MATCH(B6,Table2[Primary Activity],1))

Your formula was missing the table name in the references.

Note: it returns zero because the cell that matches the Primary Activyt in Table2[Prescribed ERA 06 Asphalt Manufacturing] is empty.

Mynda

Avatar
Faryal Shahabuddin

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
July 1, 2020
sp_UserOfflineSmall Offline
5
July 3, 2020 - 12:08 pm
sp_Permalink sp_Print

Hello Mynda,

Thank you so much for your help.

But still it isn't working as it should. I am attaching the spreadsheet again for your review.

Also, I think we need to use some other formula because for some Projects there is a list of sub projects, available in the Drop down List sheet.

Regards,

Faryal

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
July 3, 2020 - 2:37 pm
sp_Permalink sp_Print

Hi Faryal,

It looks like it's working fine to me so you'll have to be explicit about why this is wrong and what you're expecting to see instead. Also, which projects have sub projects and where is this information stored?

Mynda

Avatar
Faryal Shahabuddin

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
July 1, 2020
sp_UserOfflineSmall Offline
7
July 6, 2020 - 12:07 pm
sp_Permalink sp_Print

Thank you Mynda,

I am sorry for being the pain.

 

What I am expecting to see is When somebody select any primary activity in the column D the list of relevant sub projects appear.

For instance, of ERA 07 is selected in Column B then the following corresponding list appear in column D drop down menu. All of them are available in Drop Down spread sheet.

Also, for some there are no sub projects so when these are selected automatically the word N?A appears in Column D.

I hope, I am making sense there.

Thanks and Reagrds,

Faryal

Prescribed ERA 07-(1) - Chemical Storage & Mfg
Prescribed ERA 07-(2a) - Chemical Storage & Mfg
Prescribed ERA 07-(2b) - Chemical Storage & Mfg
Prescribed ERA 07-(2c) - Chemical Storage & Mfg
Prescribed ERA 07-(3a) - Chemical Storage & Mfg
Prescribed ERA 07-(3b) - Chemical Storage & Mfg
Prescribed ERA 07-(3c) - Chemical Storage & Mfg
Prescribed ERA 07-(3d) - Chemical Storage & Mfg
Prescribed ERA 07-(4a) - Chemical Storage & Mfg
Prescribed ERA 07-(4b) - Chemical Storage & Mfg
Prescribed ERA 07-(5a) - Chemical Storage & Mfg
Prescribed ERA 07-(5b) - Chemical Storage & Mfg
Prescribed ERA 07-(5c) - Chemical Storage & Mfg
Prescribed ERA 07-(5d) - Chemical Storage & Mfg
Prescribed ERA 07-(6a) - Chemical Storage & Mfg
Prescribed ERA 07-(6b) - Chemical Storage & Mfg
Prescribed ERA 07-(6c) - Chemical Storage & Mfg
Prescribed ERA 07-(6d) - Chemical Storage & Mfg
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
July 6, 2020 - 2:27 pm
sp_Permalink sp_Print

Hi Faryal, 

I think I finally understand! You want a dependent data validation list as described here. It was confusing because you have the 'dependent lists' in the same table as the primary activities. I would have separted these to make it clear that the data across the columns is not related.

I hope that points you in the right direction.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: SALLY, Valentyn Kristioglo, Tiffany Kang
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Bruce Tang Nian
Scot C
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Forum Stats:
Groups: 3
Forums: 24
Topics: 6223
Posts: 27294

 

Member Stats:
Guest Posters: 49
Members: 31919
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.