+ Reply to Thread
Results 1 to 22 of 22

Data Validation character limitation issue

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Data Validation character limitation issue

    Can anybody help with my problem please?
    My formula (ideally) is set out below, however the 255 character limit is preventing me from being able to enter this in Excel.

    Would appreciate any suggestions.

    =IF(R16="Chemicals",$AA$12:$AA$17,IF(R16="Petro-Chemicals",$AB$12:$AB$15,IF(R16="Food, Health & Personal Care",$AC$12:$AC$14,IF(R16="Agrochemicals",$AD$12:$AD$12,IF(R16="Adhesives & Sealants",$AE$12:$AE$14,IF(R16+"Colours",$AF$12:$AF$16,IF(R16+"Electronic Chemicals",$AG$12:$AG$14,IF(R16+"Distributors",$AH$12:$AH$14))))))))

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Data Validation character limitation issue

    I think named ranges would be better. you've gotta either change the list in R16 to not include commas and ampersands, or use a bunch of SUBSTITUTE functions, or use a lookup table. after that you can just use =indirect(R16)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Data Validation character limitation issue

    I pasted same in 2007, but there is no any error.
    There are two options
    - As mentioned by Joseph use name range.
    -Put your criteria( "Petro-Chemicals","Food, Health & Personal Care"....)in cell and link them.

    Regards,
    Suhas

  4. #4
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue

    Thanks, I've tried to link the criteria to cells, but now get the message 'The list source must be a delimited list, or a reference to a single row or column.'

    The references to the Cells e.g. AA1 are where the headings are located, i.e. Chemicals etc.

    My revised formula is below - any ideas?

    =IF(R16="AA1",$AA$12:$AA$17,IF(R16="AB1",$AB$12:$AB$15,IF(R16="AC1",$AC$12:$AC$14,IF(R16="AD1",$AD$12:$AD$12,IF(R16="AE1",$AE$12:$AE$14,IF(R16="AF1",$AF$12:$AF$16,IF(R16="AG1",$AG$12:$AG$14,IF(R16="AH1",$AH$12:$AH$14))))))))

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Data Validation character limitation issue

    remove the quotes round the "AA1" and so on

    if you haven't already read this page it's worth it! http://www.contextures.com/xlDataVal02.html

  6. #6
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue

    Now for the next question :-(

    Any idea how I can extend the formula down the cells in the column so that the formula remains the same, but the cell reference moves down to the next, i.e. R16 then R17 then R18 etc...

    =IF(R16=AA1,$AA$12:$AA$17,IF(R16=AB1,$AB$12:$AB$15,IF(R16=AC1,$AC$12:$AC$14,IF(R16=AD1,$AD$12:$AD$12,IF(R16=AE1,$AE$12:$AE$14,IF(R16=AF1,$AF$12:$AF$16,IF(R16=AG1,$AG$12:$AG$14,IF(R16=AH1,$AH$12:$AH$14))))))))

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Data Validation character limitation issue

    select all the cells you want to apply the validation to then apply the validation-but you need to fix the row 1 references first

    =IF(R16=$AA$1,$AA$12:$AA$17,IF(R16=$AB$1,$AB$12:$AB$15,IF(R16=$AC$1,$AC$12:$AC$14,IF(R16=$AD$1,$AD$12:$AD$12,IF(R16=$AE$1,$AE$12:$AE$14,IF(R16=$AF$1,$AF$12:$AF$16,IF(R16=$AG$1,$AG$12:$AG$14,IF(R16=$AH$1,$AH$12:$AH$14))))))))

    or maybe use

    =CHOOSE(MATCH(R16,$AA$1:$AH$1,0),$AA$12:$AA$17,$AB$12:$AB$15,$AC$12:$AC$14,$AD$12:$AD$12,$AE$12:$AE$14,$AF$12:$AF$16,$AG$12:$AG$14,$AH$12:$AH$14)

  8. #8
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue

    Thanks for this:

    =IF(R16=$AA$1,$AA$12:$AA$17,IF(R16=$AB$1,$AB$12:$AB$15,IF(R16=$AC$1,$AC$12:$AC$14,IF(R16=$AD$1,$AD$12:$AD$12,IF(R16=$AE$1,$AE$12:$AE$14,IF(R16=$AF$1,$AF$12:$AF$16,IF(R16=$AG$1,$AG$12:$AG$14,IF(R16=$AH$1,$AH$12:$AH$14))))))))

    However, I once again get the error message: 'The list source must be a delimited list, or a reference to a single row or column.'

    Frustrating - I'm almost there...! Can you assist?

  9. #9
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Data Validation character limitation issue

    Please attache Excel sheet.

    Regards,
    Suhas

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Data Validation character limitation issue

    your profile says 2003 - 2003 has a limit of 7 nested IF's...it looks like you have 8

    Remove 1 of the IF's and see if the error goes away

    Edit: What exactly are you trying to do? It seems your IF statements are returning a range?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Data Validation character limitation issue

    Try making sure that r16 matches one of the headers when you apply the validation initially.
    Everyone who confuses correlation and causation ends up dead.

  12. #12
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue - please help!

    Ok - so attached is the spreadsheet where I'm looking to use a combination of Data Validation and IF formulas, to categorize a customer list. Everything I've tried so far, I'm struggling to get the solution I require, so any help would be greatly appreciated.

    On tab 1 are the Category, branch and sub-branch options. On tab 2 will be the list of customers where I'd like to be able to use data validation which will then filter out for the next option, depending on the previous category selected.

    Hopefully somebody can come up with a solution for me!

    Many thanks!
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Angry Re: Data Validation character limitation issue - please help!

    Could anybody please help with this as I can't seem to make any progress :-(

    Thanks!

  14. #14
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Data Validation character limitation issue

    Hi Sj80,

    I have worked a solution based on your requirement, it has some limitation & need some ground to be done, i have done a sample for Chemicals, if this solves your problem i will let you know next step to taken.

    Punnam
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Data Validation character limitation issue

    hi Sj80,

    I am waiting for answer .

    Punnam

  16. #16
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue

    Hi Punnam,

    Thanks for your assistance - it does seem to be working for the Chemicals category.
    If it could be extended for the rest of the document and categories etc. I'm sure I'd be able to work with it.

    Could you advise if this is possible?

    Thanks!

  17. #17
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Data Validation character limitation issue

    Hi Sj80,

    yes sure it will work for the rest of the cases also, but u need to do some manual work before it can happen , kindly have a look to the back up sheet, you need to make some name ranges based on the various Categories, Branches & Sub-branches, if u are aware of name manager you will be able to do the work on you own, if not i will do it for you but i need some time to complete the rest .

    Punnam

  18. #18
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue

    Hi Punnam,

    Thanks for the reply. I'm not quite sure what you mean and I am really an Excel novice when it comes to these kind of formulas etc.
    If there is any chance you would be able to do the name manager as you refer to, it would be greatly appreciated.

    Sj80

  19. #19
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Data Validation character limitation issue

    Hi Sj80,

    No issue i will do it for you, but i will do it by tomorrow after noon only.

    Punnam

  20. #20
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Data Validation character limitation issue

    Hi Sj80 ,

    I am working on your sheet but i have been referring you previous posts & found that u are using excel 2003 , in that case my solution will not help you.as we can go only 7 nested if conditions in excel 2003 & 64 in case of excel 2007 and above.

    Let me know was it possible for you to access file from excel 2007.

    Punnam

  21. #21
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Data Validation character limitation issue

    Hi Sj80,

    I have updated details up to COLORS , provide me more details i will complete the rest.

    Punnam
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Data Validation character limitation issue

    Hi Punnam,

    For the final 2 Categories, there are only limited options as per the document. For Electronic chemicals, there are no sub-branches, and for Distributors, there are only 2 sub-branches within the Cemical distributors branch.

    If you could complete these, the document will be complete and I will be most grateful!

+ 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. [SOLVED] Workaround for Data Validation (List) limitation
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-04-2013, 06:04 PM
  2. Cell character limitation and recognition
    By erisaaka in forum Excel General
    Replies: 7
    Last Post: 03-20-2013, 04:03 PM
  3. Character Limitation
    By hicksviv in forum Excel General
    Replies: 5
    Last Post: 04-13-2006, 11:36 AM
  4. Dreaded 911 cell character limitation
    By mdengler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2006, 10:32 AM
  5. Data Validation Limitation
    By r wilcox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2006, 06:30 PM

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