+ Reply to Thread
Results 1 to 9 of 9

Data validation formula

  1. #1
    Registered User
    Join Date
    02-13-2017
    Location
    Aust
    MS-Off Ver
    2010
    Posts
    6

    Data validation formula

    Hi All,

    I'm working on a pet project with excel and have been somewhat stumped.

    I need my data validation to be multiples of cell F6 and less than Cell F6 times G6.

    This is where i've gotten to so far:

    =ANDC6<=(F6*G6),MOD(C6,F6)

    Can someone please help fix the above? Thank you

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Data validation formula

    What is criteria of MOD(C6,F6)?
    Quang PT

  3. #3
    Registered User
    Join Date
    02-13-2017
    Location
    Aust
    MS-Off Ver
    2010
    Posts
    6

    Re: Data validation formula

    I thought that was C6 must be multiples of F6, it worked initially but i may have changed it too much trying to get the total formula to work.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Data validation formula

    AND formula:

    =AND(Logical1, logical2)

    in which MOD(C6,F6) is logical2 and it must return TRUE or FALSE, like this: MOD(C6,F6)=1 or >=0

  5. #5
    Registered User
    Join Date
    02-13-2017
    Location
    Aust
    MS-Off Ver
    2010
    Posts
    6

    Re: Data validation formula

    Hey Bebo, i appreciate you trying to help but still unable to get the formula working. Mod (c6, F6) works by itself but when i try to put it in combination with >=(F6*G6) using the and formula it does not work as expected.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Data validation formula

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Registered User
    Join Date
    02-13-2017
    Location
    Aust
    MS-Off Ver
    2010
    Posts
    6

    Re: Data validation formula

    Thanks Bebo,

    In the attached i am trying to get the C column data validated so that it must be entered as a multiple of the F column on the same row and also be smaller than the F column multiplied by G column on the same row.
    Attached Files Attached Files

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Data validation formula

    OK, I got it.

    Validation for cell C3:

    =OR(C3=F3*ROW(INDIRECT("1:"&G3)))

    Drag C3 down.

  9. #9
    Registered User
    Join Date
    02-13-2017
    Location
    Aust
    MS-Off Ver
    2010
    Posts
    6

    Re: Data validation formula

    Awesome, thank you so much!

+ 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: 7
    Last Post: 02-12-2016, 01:54 PM
  2. Need formula to pull data based off a data validation (please help!!)
    By Thanks4helping in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 11:08 PM
  3. Replies: 4
    Last Post: 07-18-2014, 11:48 AM
  4. [SOLVED] How to use INDEX formula in conjunction with Data Validation to output data.
    By Pope_003 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 11:08 AM
  5. [SOLVED] Formula to display data validation results on another sheet based on data chosen?
    By myoung5149 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2013, 02:53 PM
  6. Need to shorten Data Validation formula in order to fit into formula field
    By V57strat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2012, 05:31 PM
  7. [SOLVED] Need Data Validation or Formula to Force Entry of Data in .25 Increments
    By sstravs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2012, 07:16 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