+ Reply to Thread
Results 1 to 3 of 3

Insert Line Every Other Row w/Multiple Formulas based on Line Above

  1. #1
    Registered User
    Join Date
    09-23-2011
    Location
    NC
    MS-Off Ver
    Excel 2003
    Posts
    4

    Insert Line Every Other Row w/Multiple Formulas based on Line Above

    I have a report like this with thousands of parts :

    FinishedG -qty/case--comp part--comp part--comp part-
    SystemA 5 part464 part 2121 part 212
    System B 10 part414 part 211 part312
    System C 5 part4 part21 part 213


    I need to calculate costs for finished goods, so beneath each row I have a vlookup formula and a total formula as well as a total/qty per case formula. How can I add these additional lines with forumlas. I have the macro to add a row every other line, but I'm not sure how to paste the formula under every other line without clearing the skipped line.

    FinishedG -qty/case--comp part--comp part--comp part-cost/each
    SystemA 5 part464 part 2121 part 212
    null =B1 vlookup(XXX,2) Vlookup Vlookup =SUM(C2:E2)/B2
    System B 10 part414 part 211 part312
    null =B3 vlookup(XXX,2) Vlookup Vlookup =SUM(C4:E4)/B4
    System C 5 part4 part21 part 213
    null =B5 vlookup(XXX,2) Vlookup Vlookup =SUM(C6:E6)/B6
    Last edited by xyshel; 09-23-2011 at 10:47 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert Line Every Other Row w/Multiple Formulas based on Line Above

    Your formulas do not make sense to the eye. Please upload a sample workbook with BEFORE/AFTER sheets demonstrating all of this.

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Insert Line Every Other Row w/Multiple Formulas based on Line Above

    Hi xyshel

    Welcome to the forum ...

    You would do best to post a sample workbook showing your Sheet Layout and perhaps Before and After examples.

    It should clearly illustrate your problem and not contain any sensitive data.


    Cheers

    From Forum FAQs

    How do I attach a file to a post?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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