+ Reply to Thread
Results 1 to 12 of 12

Help with Auto filiing

  1. #1
    Registered User
    Join Date
    02-28-2008
    Posts
    7

    Question Help with Auto filiing

    I have a worksheet where when I enter a value into a cell I would like it to copy different cell from the row above down onto the row I have just netered data in.

    For example if I enter a value in cell h4 I would like the worksheet to automatically copy the formulas from A3 & B3 into A4 & B4

    Please can someone help
    Last edited by whatnext; 02-28-2008 at 08:48 AM.

  2. #2
    Registered User
    Join Date
    02-28-2008
    Posts
    7

    Question help with auto fill

    I have a worksheet where when I enter a value into a cell I would like it to copy different cell from the row above down onto the row I have just netered data in.

    For example if I enter a value in cell h4 I would like the worksheet to automatically copy the formulas from A3 & B3 into A4 & B4

    Please can someone help

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Right click on sheet name tab, then choose view code and past this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    you could insert the formula into an IF function that will return a result if cell H4 is not blank. If H4 is blank, cells A4 and B4 will remain blank.

    e.g

    =IF(H4<>"",your_formula,"")

    replace your_formula with the formula you have in A3 and repeat for formula you have in B3... then copy down as far as you want.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    02-28-2008
    Posts
    7
    Hi Antonio,

    This does work but copys when any cell has a value entered in it could it be made so that it only copies the the A&B cells above only if or when something is entered in the next cell in row H?

  6. #6
    Registered User
    Join Date
    02-28-2008
    Posts
    7
    Hi this doesn't work as the formulas I am trying to copy is a load of if formulas so it keeps genrating an error

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Another way is to conditionally format the cells so that if H4 is blank, then the font colour of the results cell matches the background colour...so effectively making it invisible.

  8. #8
    Registered User
    Join Date
    02-28-2008
    Posts
    7
    Thanks NBVC this works

  9. #9
    Registered User
    Join Date
    02-28-2008
    Posts
    7

    Question Sorry NBVC but I can't get it to work

    in the conditional formating I cannot get it to allow me to chose a different cell than the one I am in so I can't get it to do the if H=""

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by whatnext
    in the conditional formating I cannot get it to allow me to chose a different cell than the one I am in so I can't get it to do the if H=""
    You will have to choose Formula Is from 1st drop down rather than Cell Value is

    and then enter formula, e.g =H4<>"" or =H4=""

  11. #11
    Registered User
    Join Date
    02-28-2008
    Posts
    7

    Thanks NBVC

    Thanks NVBC that work perfect

  12. #12
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    You may also use this code:
    Please Login or Register  to view this content.
    Best regards,
    Antonio

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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