+ Reply to Thread
Results 1 to 5 of 5

Help with making formula smaller

  1. #1
    Registered User
    Join Date
    07-17-2017
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    56

    Help with making formula smaller

    Dear Excel Forum Users,

    I am attempting to write a formula in the Source bar found in the Data Validation box to create a scenario where a list will be visible based on the formula i have written. The issue that I ran into is that in the source bar in the Data Validation box I can't type anymore characters it just gives that error sound. Now I have pasted my formula below with the hope that someone could help me slim down the formula so I could enter it into the source bar. I will show both the full formula I wrote and the point in which the source bar stopped me from typing further so you could understand how much smaller I need the formula to be. Thanks in advanced.

    -Avidan


    Just a side note the Data Access part found at the end is pulling the false data from another tab where if the statement above is false it displays the list otherwise as shown above it will show "N/A".

    Full Formula: =IF(OR(AND(A17="Purchasing",B17="ABG Buyer"), AND(A17="Purchasing",B17="ABG Advanced Buyer - Admin Only") ,AND(A17="Purchasing",B17="ABG Advanced Procurement Requestor"),
    AND(A17="Purchasing",B17="ABG Procurement Catalog Administrator")),"N/A",'Data Access'!$A$3:$A$6)

    Formula was cut off at: =IF(OR(AND(A17="Purchasing",B17="ABG Buyer"), AND(A17="Purchasing",B17="ABG Advanced Buyer - Admin Only") ,AND(A17="Purchasing",B17="ABG Advanced Procurement Requestor"),
    AND(A17="Purchasing",B17="ABG Procurement Catalog Administrator")),

  2. #2
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Help with making formula smaller

    Hi ,

    The Data Validation formula length is 255 , which is why your formula is being truncated at that point.

    See if this formula works the same way :

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Narayan

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Help with making formula smaller

    Hi AvidanR,

    If you could reduce the size of the job titles in column B that should work. If you don't want to amend the source data create a helper column, a separate table that contains the long and short names and use VLOOKUP to pull in the shorter name. Then use this as the equivalent criteria for B17 and amend your formula accordingly.

    Hope this helps.

    Regards,

    Snook

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Help with making formula smaller

    You can slim it down like
    =IF(AND(A17="Purchasing",OR(B17="ABG Buyer",B17="ABG Advanced Buyer - Admin Only",B17="ABG Advanced Procurement Requestor",B17="ABG Procurement Catalog Administrator")),"N/A",'Data Access'!$A$3:$A$6)
    But you will probably need to supply a list instead of N/A for the true part

  5. #5
    Registered User
    Join Date
    07-17-2017
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    56

    Re: Help with making formula smaller

    Dear Narayan,

    Thank you so much it works!!!!!

    -Avidan

+ 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. help with making vba code smaller
    By vendetta907 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2016, 03:57 PM
  2. [SOLVED] Workbook opens smaller after making userform
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2016, 11:39 AM
  3. Does Anyone have tips for making a spreadsheet smaller?
    By ExcelDavid in forum Excel General
    Replies: 2
    Last Post: 03-28-2014, 04:13 PM
  4. Making a file smaller
    By mlbdc2012 in forum Excel General
    Replies: 6
    Last Post: 03-05-2014, 10:19 AM
  5. Making files smaller
    By mikesimpson in forum Excel General
    Replies: 2
    Last Post: 12-28-2011, 01:11 PM
  6. Making this code smaller
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2009, 03:38 PM
  7. Making file size smaller
    By mrdata in forum Excel General
    Replies: 1
    Last Post: 04-18-2008, 05:58 PM

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