+ Reply to Thread
Results 1 to 14 of 14

Is it possible to auto-fill a column of cells dependent the rows in another column?

  1. #1
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Is it possible to auto-fill a column of cells dependent the rows in another column?

    Hi All,

    I'm in a situation where I have a number of formulas in place that are dependent on data imported from another source. As the row count for the data will be of varying lengths, is it possible for excel to understand what the last row is a value exists on in column C, and from there, automatch the formula to that row in column D to meet the final value in column C? Preferably this would occur when the data in column C is imported

    I understand dragging down for say 100 cells in column D should cover the imported data, if, for example, the maximum rows will always be between 70-80. The issue with this is, a 0 value will be returned, which will affect other formulas on my spreadsheet. 0 values for that column can't be set to not showing, as they may show up earlier in the column, which is data I will need to have showing.

    Thanks in advance.
    Last edited by samcoarse; 07-06-2016 at 02:57 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    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.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Example workbook attached.
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Perhaps Try

    C2=IF(B2="","",B2*2) and drag down

  5. #5
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Quote Originally Posted by shukla.ankur281190 View Post
    Perhaps Try

    C2=IF(B2="","",B2*2) and drag down
    This works on the example sheet I provided but returns a #Value! error when it finds empty cells the worksheet I am using. The formula has more dependent cells which will be empty than the example worksheet.

    The formula in the worksheet is as follows
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with cells in D, E & G being imported into the sheet/ will be returning empty cells after a certain row number.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    It will be good if you can upload actual working workbook with expected result.

  7. #7
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    The situation is the same as the example workbook, except extrapolated to cover values in more cell columns.

    Example Attached.
    Attached Files Attached Files

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Try

    K2=IF(((D2+E2)/V$2)*G2=0,"",((D2+E2)/V$2)*G2) and drag down!!!

  9. #9
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

    K2=IF(((D2+E2)/V$2)*G2=0,"",((D2+E2)/V$2)*G2) and drag down!!!
    This works, but does not take into account the problem in my original post.

    "I understand dragging down for say 100 cells in column D should cover the imported data, if, for example, the maximum rows will always be between 70-80. The issue with this is, a 0 value will be returned, which will affect other formulas on my spreadsheet. 0 values for that column can't be set to not showing, as they may show up earlier in the column, which is data I will need to have showing."

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    It will take care all the things. When the cell will have 0 value, it will self convert them into blank cell and don't affect to average formula.

  11. #11
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Quote Originally Posted by shukla.ankur281190 View Post
    It will take care all the things. When the cell will have 0 value, it will self convert them into blank cell and don't affect to average formula.
    If I change value G2 to "0" then K2 will become a blank cell and the result in M2 will show 4, instead of the true average of K:K, which is 3.5.

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Ok

    Try

    K2=IF(ISBLANK(B2:G2),"",((D2+E2)/V$2)*G2) with Control+Shift+ENTER

  13. #13
    Registered User
    Join Date
    07-01-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    22

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Hi Shukla,

    Thanks for working through this with me.

    This formula now works if there is a 0 value within B2:G2 and shows no value in column K if there is no value in the corresponding cells.

  14. #14
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Is it possible to auto-fill a column of cells dependent the rows in another column?

    Glad to help you

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED and add reputation click on star * icon left corner on your screen. Thanks.

+ 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. Auto fill macro when adjacent column has blank cells
    By ElsiePOA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2014, 09:49 PM
  2. [SOLVED] Auto fill column k from one sheet to another if two cells match?
    By synses in forum Excel General
    Replies: 6
    Last Post: 06-19-2013, 05:36 PM
  3. [SOLVED] auto fill with one column and multiple unique rows.
    By plague5050 in forum Excel General
    Replies: 5
    Last Post: 04-30-2013, 02:29 PM
  4. Auto FIll cells down in Column with formula from preceeding cell
    By tsa8786 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2011, 02:07 PM
  5. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  6. auto fill column without blank rows
    By jistme in forum Excel General
    Replies: 6
    Last Post: 08-10-2010, 09:40 PM
  7. [SOLVED] Auto Fill Column with Date based on rows in other column
    By JOUIOUI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2006, 01:35 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