+ Reply to Thread
Results 1 to 4 of 4

A problem with serial numbers in cells.

  1. #1
    Registered User
    Join Date
    05-10-2004
    Posts
    28

    A problem with serial numbers in cells.

    Hi all, I have an issue with getting a serial number into a cell

    A user can buy product A and product B.

    Product A comes with a serial number, B doesn't but if A and B are bought together, Product A's serial number doubles up as Product B's

    In the scenario below, John Doe buys Product A and B.

    Our ERP system exports sales in csv format, the following is a simplified example

    Row Name Product Serial #
    1 John Doe Product A 00101
    2 John Doe Product B

    You see in row 2 the serial number is blank, but I need 00101 put in there based on the fact that the cell above is, (a) for John Doe and (b). has a serial number.

    I can ofcourse simply copy and paste the serial number down into the Serial # cell in row 2 but sometimes there can be hundreds of names in a sales order.

    Any ideas of how, possibly using macro's, can I get the serial number in based on the (a) and (b) criteria listed above.

    I have attached a simple example of what I am trying to do
    Attached Files Attached Files
    Last edited by okanem; 08-05-2009 at 07:00 AM. Reason: Additional info

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: A problem with serial numbers in cells.

    Possibly with something along the lines of:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: A problem with serial numbers in cells.

    Maybe a combination of a couple vlookups and ifs?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: A problem with serial numbers in cells.

    how about in insert new col d then in cell d2
    =IF(A2=A1,D1,C2) dragged down then copy paste/special values over column c then delete col d
    Attached Files Attached Files
    Last edited by martindwilson; 08-05-2009 at 07:13 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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