+ Reply to Thread
Results 1 to 12 of 12

How to apply Formula throughout the column by data validation without dragging the cell

  1. #1
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Question How to apply Formula throughout the column by data validation without dragging the cell

    Hi
    I want to apply the below formula to the entire column. I donot want to drag or copy paste the cell. Can I do it by using Data validation option in excel.
    =IFERROR(IF(L3>0,IF(K3>0,WORKDAY(K3,L3),""),""),"")

    Thank you
    Best regards

  2. #2
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Have you tried put cursor in cell A2>>press control+shift+down arrow. That will take you to the last row in A. From there paste your formula in the last cell. Highlight cell with formula, press control+shift+up arrow, then use fill up on the ribbon? Or whatever column you want it in.

    I'm using Excel 2013 and it goes down to 1048576 so I just pasted this =IFERROR(IF(L1048576>0,IF(K1048576>0,WORKDAY(K1048576,L1048576),""),""),"") into A1048576, filled it right up in seconds
    Last edited by greenfox74; 02-19-2017 at 12:47 AM.

  3. #3
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Yes I tried. But that increases the Excel size. Also I want to allow other to use the sheet. If I can apply through Data validation, the formula will be hidden and no need to protect sheet.

  4. #4
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    I may be wrong, but I think one can just open the data validation tab and clear all and that will erase all the parameters you set. I'm not thinking you can actually fill cells with the option, just kind of protect them. If anyone knows for sure though they'll be on this site. Sorry I couldn't help more.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    If range is A1:A18, then select the range A1:A18
    Data --> Data validation -->Settings--> Custom
    Formula
    =A1=(L3>0)*(K3>0)*WORKDAY(K3,L3)
    Date is to be entered in the range manually.

  6. #6
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Thank you, I tried to apply the formula through data validation, but seems its not working. I created a test data set. attached.
    I put conditions so that if no value in receipt date and timeline fields, the due date remain blank.
    Thanks for your help!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Is there any VBA code available for such scenario if not possible through DATA validation?

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Data validation restricts the date entry. Only correct date can be entered as per formula.
    TRy this.
    Enter the formula in first cell. Get the fill handle. then double click. It fills formula for entire formula.

  9. #9
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Sorry, I tried again. I even format the Date field. I applied the formula in first cell.
    I used the test excel attached in previous post. =C2=(B2>0)*(A2>0)*WORKDAY(A2,B2)

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Rather confused but If I understand correct;y ..applied DV to C2:C8

    See attached.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Thank you. But when I change timeline in B2 or date in A2, the due date in C2 doesnt change. Seems the due date not automatically calculating. Any reason?

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: How to apply Formula throughout the column by data validation without dragging the cel

    Because there is no formula in column C.

    This is why I was confused between having a formula in C2 AND a Data Validation: so still confused!

    DV should only allow data based on the formula in the DV.
    Last edited by JohnTopley; 02-19-2017 at 07:01 AM.

+ 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: 5
    Last Post: 10-09-2014, 07:24 AM
  2. [SOLVED] Data Validation custom formula - how to apply?
    By D_N_L in forum Excel General
    Replies: 3
    Last Post: 07-01-2014, 08:41 AM
  3. Apply data validation to the whole column
    By zarab in forum Excel General
    Replies: 10
    Last Post: 09-29-2013, 09:05 AM
  4. [SOLVED] Auto create a formula to apply to the whole column without dragging
    By teenyjem in forum Excel General
    Replies: 4
    Last Post: 08-07-2012, 06:08 AM
  5. [SOLVED] If I apply formula to my column can the cell be blank until data is added?
    By KELLIS in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-01-2012, 03:39 PM
  6. Apply change to All Column range instead of Cell for date Validation
    By gaursh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2011, 06:01 AM
  7. [SOLVED] How can i apply the validation on the cell with invalid data.
    By Shinya Koizumi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2006, 04:55 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