+ Reply to Thread
Results 1 to 10 of 10

Autofill Down and Across based on Data on another Worksheet

  1. #1
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Autofill Down and Across based on Data on another Worksheet

    Hi everyone, and Happy New Year! I was hoping to for some assistance with a problem.

    Basically, all I would like to do is run a macro that grabs data from another worksheet.

    Please see attached.

    In WORKSHEET, there is a blue highlighted area. Those cells should be populated with data in the Parts Usage tab. Basically, column D should list a Part, column E the Quantity, and column F the Price or rate.

    The desired result is in the Result tab. I basically just entered a formula then autofilled down and across. Is there a way to do this in VBA? Any suggestions would be much appreciated.
    Attached Files Attached Files
    Last edited by uberathlete; 01-01-2014 at 09:51 AM.

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Autofill Down and Across based on Data on another Worksheet

    Are you trying to automate the complete invoicing process so that you can have a template that will extract data for parts usage and other details and generate an invoice based on the invoice number ?

    Based on your sample file, the requirement seems to be to just pull data from one sheet and paste it into another.
    A simple cell reference will do the job if your parts list is not going to exceed 8 items.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: Autofill Down and Across based on Data on another Worksheet

    Quote Originally Posted by xlbiznes View Post
    Are you trying to automate the complete invoicing process so that you can have a template that will extract data for parts usage and other details and generate an invoice based on the invoice number ?

    Based on your sample file, the requirement seems to be to just pull data from one sheet and paste it into another.
    A simple cell reference will do the job if your parts list is not going to exceed 8 items.
    Actually yes, I am trying to automate the whole process. I get a Parts Usage report and the data in that report (part, quantity, and price) should appear in the template. The parts list could be more or less than 8 items, so the template should hopefully adjust to that.
    Last edited by uberathlete; 01-01-2014 at 07:26 AM.

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Autofill Down and Across based on Data on another Worksheet

    looking at the part usage report, the invoice number is not a part of this list.

    Now when you want to fill in your invoice with the parts we need to have a reference number by which we can search the data and populate your template.

  5. #5
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Autofill Down and Across based on Data on another Worksheet

    Have a look at this file to see how it can be achieved.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: Autofill Down and Across based on Data on another Worksheet

    Quote Originally Posted by xlbiznes View Post
    Have a look at this file to see how it can be achieved.
    Hi x1biznes. I have amended my original workbook (Excel Problem 3 Amended.xlsx in the first post‎) . What I did was extend the invoice template down and reference the parts in Parts Usage. If there is no part (ie. it references a blank in the Parts Usage sheet), then return "NONE".

    However, I would like to delete the range that contains "NONE" (ie. A14:G26 and not entire rows). Would it be possible to do this action with VBA?
    Last edited by uberathlete; 01-01-2014 at 09:52 AM.

  7. #7
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Autofill Down and Across based on Data on another Worksheet

    try this, this will clear the rows that have none in it.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: Autofill Down and Across based on Data on another Worksheet

    Quote Originally Posted by xlbiznes View Post
    try this, this will clear the rows that have none in it.
    Awesome! Thank you thank you thank you!!!

  9. #9
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: Autofill Down and Across based on Data on another Worksheet

    Yikes. How do i mark this thread as Solved? Sorry moderators. Kindly advise.

  10. #10
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Autofill Down and Across based on Data on another Worksheet

    Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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. How to autofill based on last row of data
    By adamjohnson182 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 08:48 PM
  2. [SOLVED] Autofill based on data in other columns
    By db3712 in forum Excel General
    Replies: 8
    Last Post: 11-07-2012, 03:34 PM
  3. [SOLVED] Excel 2007 : Autofill based on column data
    By db3712 in forum Excel General
    Replies: 5
    Last Post: 06-28-2012, 10:06 AM
  4. Select something on one worksheet, and autofill data to another
    By romeisburning in forum Excel General
    Replies: 0
    Last Post: 03-13-2011, 05:44 PM
  5. Autofill macro based on above data
    By shoey72 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2008, 10:02 AM

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