+ Reply to Thread
Results 1 to 8 of 8

Validation popup ending with the reference (A3) of the choosen field (not the value)

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    5

    Validation popup ending with the reference (A3) of the choosen field (not the value)

    Hello

    My name is Gaston. I'm not new to this forum, but I rarely ask questions.
    This time I'm trying to do something that I thought was customary. I want to make a popup to validate the inputs of some fields.

    I know the validation function and I use it often. In this case, I wanted to keep the address of the chosen value, and not the chosen value. In the end, it's harder than I thought...

    Basically, I want to build a validation lists/process that will be used in various places in my spreadsheet. The difference from the usual way is that I want to keep the address of the value and not the value. So if a correction is made to the value in the validation list, it will end up in all cells that use that choice, and I'm unable to figure out how to do that.

    Let's suppose the validation list, in the table "Fruits":
    • A Fruits
    • B Apple
    • C Orange
    • D Banana
    • E Grape

    Using the standard popup validation process, I will store, as an example, the value "Apple" in the resulting field. If I change "Apple" to "Apples" in the validation list, it will stay "Apple" for all existing fields. I want these fields to change for "Apples" because this is the new reference. I don't want to store "Apple", but "=B1" (?) in the resulting fields.

    How can I do that ?

    Thanks for your help.

    Gaston Huot
    Last edited by huotg01; 03-14-2022 at 09:58 AM.

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2501
    Posts
    1,432

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    Hi Gaston,

    Have a look at the attached - it may help you get to where you want to be.

    Hope it helps
    Attached Files Attached Files
    If things don't change they stay the same

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    Hi CheeseSandWich

    You should be a genius!
    Thank you so much.

    If I may, I have 3 questions:

    1- Sometimes, if I think that I have a good way of doing something, and, if nobody seems to do it that way, I ask to myself :"Is it really a good idea of doing it that way ?" Is it ?

    2- If I the name of a table (instead of a range), will it work ?

    3- Is there a way to do it in a way that would work with Excel in the cloud (I just saw that VBA code is not supported by Excel on the Web)?

    Again thank you so much,

    Gaston
    Last edited by huotg01; 03-14-2022 at 01:00 PM. Reason: added point #3

  4. #4
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2501
    Posts
    1,432

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    1, In my opinion it is a way of getting the job done. It is what it is.
    2, It may need amending for the table, the only way to know will be to give it a try.
    3, No - VBA is not supported in Excel online.

  5. #5
    Registered User
    Join Date
    02-27-2014
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    Thank you so much for this.

    Gaston

  6. #6
    Registered User
    Join Date
    02-27-2014
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    CheeseSandwich

    Me again...

    Do you now why I cannot use a table name and a column title as a validation range ? I did convert the list to a table (Table1), and the header/Title is "Fruits"

    Validationrule: =Table1[Fruits]

    From my understanding, it should work, but ...

    Thanks,

    Gaston

  7. #7
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2501
    Posts
    1,432

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    Hi Gaston,

    It should not change anything as the code is pulling the Validation.Formula1 for the cell, this means that wherever the validation is being pointed at is the range used. It might be worth looking if your cell validation range is pointed at your new table data. Have you converted it to a table because you are going to add items to the validation list regularly?

    Attached is it working with a table.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-27-2014
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Validation popup ending with the reference (A3) of the choosen field (not the value)

    Thanks CheeseSandwich

    Yes, I am using a table because it is easier to add and remove items.

    I think that my problem was not correctly explained.

    The fact of using a table as a validation list is not a problem. It is just the fact that, in the validation rule, I should be able to use something like "='Validation List'!Fruits", or
    "='Validation List'!Table1[Fruits]!, no ? It was maybe just a syntax error from my part?

    In summary, how do I use a table name (or a table name + the column title) as a reference instead of using a range ($B$2:$B$5) ?

    Thanks,


    Gaston

+ 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. open an validation popup in code?
    By lord anubis in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-01-2020, 11:57 AM
  2. [SOLVED] NamedRange validation is working only when validated cell is choosen
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-06-2019, 06:57 AM
  3. [SOLVED] Ending a loop using data in another field
    By heathb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-10-2013, 11:20 AM
  4. Need dynamic message in validation popup
    By ken66220 in forum Excel General
    Replies: 0
    Last Post: 10-10-2012, 12:44 PM
  5. Replies: 5
    Last Post: 02-03-2012, 05:36 AM
  6. Data Validation popup stop following cell
    By JK1234 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-08-2010, 09:52 AM
  7. How to Reference a Web Query's Address Field to an external field?
    By Nivled in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-21-2005, 07:10 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