Results 1 to 10 of 10

Macro to Fix Auto-Pattern?

Threaded View

  1. #1
    Registered User
    Join Date
    04-06-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    19

    Macro to Fix Auto-Pattern?

    Hi,

    The spreadsheet I'm working on is kinda hard to describe, but I'll try.

    It's a finance calculator of sorts that I need done, and it shows me the total cost of various products. Each of these products require different components, and numbers of components, and also these components all cost different prices. So what I have is the following spreadsheet setup:

    Product | Component A | Component B | Component C |Number of Component A Needed | No. Component B Needed | No. Component C needed
    So all I have to do is enter the amount of the component needed and my spreadsheet (this part I've done) multiples the 'Component' by the 'Number Needed.'

    Now the thing is that there are quite a few different products, so in the side I've created a universal price list, that shows the prices of all my products. So to get the price of each product I've further created these columns:

    Cost Component A | Cost Component B | Cost Component C
    And what I want to do is make it multiple the Number Needed * Cost of Component and then be able to use the auto formula to go down the page to autofill these values (since I have about 100, so that would take AGES manually).

    So how could I do this? The pseudo code for this patter autofil would be:

    Column AA = R[ROW NUMBER]
    Column AB = S[ROW NUMBER] * AO14
    Column AC = T[ROW NUMBER] * AO15
    Column AD = U[ROW NUMBER] * AO16
    Column AE = V[ROW NUMBER] * AO17
    Column AF = W[ROW NUMBER] * AO18
    Column AG = X[ROW NUMBER] * AO19
    Column AH = Y[ROW NUMBER] * AO20


    And then the pattern as it auto fills would be:
    Column AA = R[ROW NUMBER + 1] * AO14
    Column AB = S[ROW NUMBER + 1] * AO15


    But Excel doesn't put that down as it's auto fill. Instead it decides to do:
    [ROW NUMBER + 1] * AO17

    ALL the way down... which is wrong. How could I fix this?

    Thanks (hope I explained my problem clearly, if not please ask I'll try to clarify
    -Rudey
    Last edited by Rudey; 04-07-2009 at 11:45 PM.

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