• 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 formula in validation list|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / If formula in validation list|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

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 formula in validation list
sp_PrintTopic sp_TopicIcon
If formula in validation list
Avatar
RAMEZ ATTAR

Active Member
Members

Dashboards

Power Query

Power Pivot

Power BI
Level 0
Forum Posts: 4
Member Since:
August 19, 2022
sp_UserOfflineSmall Offline
1
May 2, 2023 - 6:57 pm
sp_Permalink sp_Print

Hi,

I need a cell to reflect certain text "E-Learning" IF a reference cell equals to specific word "LinkedIn" otherwise to allow a dropdown list.

I've tryied to put the formula in the source field in the Validation list screen

=IF(E12="LinkedIn","E-Learning","Dropdown!$A$1:$A$8")Screenshot-2023-05-02-124810.jpgImage Enlarger

https://docs.google.com/spread.....38;sd=true

BUT I got the error message "The list source must be a delimited list, or a reference to single row or column

sp_AnswersTopicSeeAnswer See Answer
Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 216
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
May 3, 2023 - 12:51 am
sp_Permalink sp_Print sp_EditHistory

I can't manipulate your data as it is in read-only mode.

Data Validation can only take your list of cells for your drop-down, but you CAN manipulate your drop-down. If E12=LinkedIn the only option in the drop-down is E-Learning. So Maybe your code in 'Dropdown'!A1 would be

=IF('Sheet1'!E12="LinkedIn","E-Learning",first drop-down option)

A2 would be

=IF('Sheet1'!E12="LinkedIn","",second drop-down option)

and so forth.

Seems labor intensive but the other alternative (I don't know if you can do it in Google Sheets which is why it wasn't my first option) is to create a named range that if LinkedIn is entered the count is one and only shows E-Learning, otherwise will expand to the entire list. I hope I am making sense and my ramblings have helped inspire your creativity. If not, creat a version I can manipulate and I can illustrate my idea, or maybe someone else has a better one.

Edit to add an example.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
3
May 4, 2023 - 5:56 pm
sp_Permalink sp_Print

Hi Ramez,

Note: this is an Excel forum, so these solutions are for Excel. There is no guarantee they will work in Sheets.

The data validation list cannot take a formula as a list item, as you've found. However, as long as the item returned by the formula is present in the data validation list, you can insert a formula in the cell that also contains data validation as long as the formula returns an item in the list or blank e.g. in cell C6: =IF(D6="LinkedIn","E-Learning","")

Then if the formula evaluates to false it will return a blank, and the user can then select from the data validation list.

Note: once they choose an item from the data validation list, the formula is replaced, so this is a one-time use solution. There is no other way to accomplish what you want because you cannot have a formula in a data validation list.

Mynda

sp_AnswersTopicAnswer
Answers Post
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Philip Treacy
Guest(s) 11
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: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Forum Stats:
Groups: 3
Forums: 24
Topics: 6356
Posts: 27793

 

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