+ Reply to Thread
Results 1 to 6 of 6

lookup with repeating data in column a

  1. #1
    Registered User
    Join Date
    02-26-2007
    Posts
    4

    Question lookup with repeating data in column a

    I'm trying to return a figure from a row using a lookup however, the data in column a may repeat. For example, one account number may appear 3 times in column a but the data in the corresponding row will be different. I am not sure which lookup feature I can use since vlookup isn't doing it...any help?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Are you trying to retrieve the sum of the corresponding data? A count of how many times the account number appears in the first column? The corresponding data for just the first instance of that account number?

    Let us know, we'll be better able to assist.

    Thanks.

  3. #3
    Registered User
    Join Date
    02-26-2007
    Posts
    4

    Question

    I'm trying to get excel to retrieve some of the information on the corresponding row every time it sees the account number in column a, which obviously, will be more than once. For example, I'd like to be able to pull the total units an account has, the issue is that there will be more than one target.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    If you're looking to sum the number of units by Account #, based on my example below:
    Please Login or Register  to view this content.
    In D2 you would enter the formula:
    =SUMPRODUCT(--($A$2:$A$8=1000),$B$2:$B$8)

    For the other accounts, you could change the "=1000" part to "=2000", "=3000", etc..

    If this is not what you're looking for, upload an example spreadsheet (zipped) so we can take a look. Add any detailed notes so we can understand exactly what you're looking to do and where you looking to pull data from.

  5. #5
    Registered User
    Join Date
    02-26-2007
    Posts
    4

    Question

    Oops, forgot to mention that i want to pull the data from this worksheet onto another one. I'd love to be able to pull the total units only for each account number listed on the main sheet to a cell on another spreadsheet. i don't think i can do this using subtotals...using example below, i'd like to pull the number of units totaled that account number 1000 bought onto another spreadsheet.

    Account Number - Units - Name
    1000 - 6 - Smith
    2000 - 6 - Jones
    3000 - 7 - Bennett
    1000 - 6 - Smith
    1000 - 5 - Smith
    2000 - 4 - Jones


    etc...
    Last edited by kiki_lallissee; 02-26-2007 at 04:33 PM.

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    All you need to do is reference the other sheet name in your formula. For example, in sheet 2 (any cell) enter:

    =SUMPRODUCT(--(Sheet1!$A$2:$A$8=1000),Sheet1!$B$2:$B$8)

    Again, to reference the other 'accounts', just change the 1000 to 2000, 3000, etc.

+ 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