+ Reply to Thread
Results 1 to 8 of 8

Formula Help

  1. #1
    Forum Contributor
    Join Date
    09-13-2005
    Posts
    114

    Formula Help

    I've got two seperate sheets that I'm working on and I need help with a formula to take pull data from one of the sheets to put in the other. One sheet, my master sheet, has all the unit information for SoHo as well as columns to enter in unit info for LA. The other sheet looks the same except it has all of the LA info. My sheets both look like this:

    Please Login or Register  to view this content.
    The sheets goes on and on with the different styles, colors, and sizes. What I need is a forumla to put into row H and I that will look in the LA sheet. When it finds the row with the same style, color, and size it will then display the amount of units from the LA sheet for that item. Thanks in advance for any help.
    Last edited by Weasel; 09-13-2006 at 11:56 AM.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    What you want is SUMPRODUCT

    Assuming that the columns are laid out as follows:
    Column B = Style
    Column C = Color
    Column D = Size
    Column E = Units On Hand
    (Adjust the formula below for any differences from these assumptions)

    The formula in Column H would be as follows:

    Please Login or Register  to view this content.
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Forum Contributor
    Join Date
    09-13-2005
    Posts
    114
    I tried using your forumla but I'm getting an error message. It says the problem with the forumla is the =C5 part. I've got it setup with:

    Column B = Style
    Column C = Color
    Column D = Size
    Column E = Units On Hand

    Sheet1 named SoHo
    Sheet2 named LA

    The styles start in row 5 and I'm pasting the forumla in the SoHo sheet in cell G5

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Try this since I am assuming the sheets are in the same workbook and you are putting the formula into Soho (Sheet1)?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-13-2005
    Posts
    114
    Correct, same workbook with a sheet named Soho and another named LA. I'm still getting an error message when I paste the formula and it's pointing towards C5 as the error

  6. #6
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Are all of your data columns the same number of rows? For this formula to work they have to be.

  7. #7
    Forum Contributor
    Join Date
    09-13-2005
    Posts
    114
    Yup, same # of rows

  8. #8
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Can you post your file so I can look at it?

    Quote Originally Posted by Weasel
    Yup, same # of rows

+ 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