+ Reply to Thread
Results 1 to 2 of 2

Custom Data Validation

  1. #1
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60

    Custom Data Validation

    Hi All,

    I would like to create a custom data validation formula but am unsure of how to complete this.

    In more detail I am using a SUMIFS formula at the moment to use the list reference box to identify particular items from a table, the drop down box being in cell C4.

    '=SUM(SUMIFS('SBI Data Air'!$X:$X,'SBI Data Air'!$P:$P,$A8,'SBI Data Air'!$K:$K,$B8,'SBI Data Air'!$AJ:$AJ,E$7,'SBI Data Air'!$AK:$AK,'Volume - KGS - IE AIR'!$E$4))'

    Is it possible to use a formula instead where I can also the add the option to sum anything with both CC & PP listed in my table?

    Many thanks,
    Gaz

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Custom Data Validation

    So there are two hygiene things I want to address before we address the substance of the question.

    1) You've got a superfluous SUM wrapped around the SUMIFS there; it's just adding up one number and returning the total, which is the number it's given.

    2) Feeding a formula the whole entire column, eg X:X instead of X1:X1000 or some big range, is a bad habit. It forces the formula to examine every single row, all millions of them.

    This isn't a big deal exactly, but it's something that people (like me) are going to either silently correct in their formula suggestions, or mention (like me).

    Moving on to the substance, I don't actually quite understand what you're asking for.

    You're not referencing C4 in the SUMIFS, so I think there's a logical flaw in the design here?

    And I'm not understanding what "sum anything with both CC & PP listed" means. Like, do you want it to check column CC as well as PP? What is the logical relationship here? If you want to embed some Boolean logic inside the SUMIFS, we'll probably move you to a SUMPRODUCT construction, but it might be as simple as just adding another term to the SUMIFS.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

+ 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. Replies: 0
    Last Post: 11-20-2015, 12:34 PM
  2. [SOLVED] Custom Data Validation
    By HangMan in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 07-09-2015, 06:04 PM
  3. [SOLVED] Custom Data Validation
    By turist in forum Excel General
    Replies: 3
    Last Post: 03-18-2014, 02:16 PM
  4. Custom Data Validation
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2012, 11:52 AM
  5. Excel 2007 : Custom Data Validation
    By superman_86 in forum Excel General
    Replies: 1
    Last Post: 11-11-2008, 04:47 PM
  6. Custom data validation
    By Guy Normandeau in forum Excel General
    Replies: 3
    Last Post: 04-18-2006, 11:15 AM
  7. Data Validation - Custom
    By Mary Ann in forum Excel General
    Replies: 4
    Last Post: 12-17-2005, 05:25 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