+ Reply to Thread
Results 1 to 7 of 7

Multiple Values for a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2009
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Multiple Values for a cell

    I am working on a spreadsheet that has three columns.

    A - Product (stays the same no changes)
    B - Amount Ordered (varies)
    C - Purchased By (varies)

    My goal is to set up a formula that shows a summary of how much a person has ordered. Sounds straight forward, but the problem I am running into is when 2 or more people are making a combined purchase. In those cases the cost will be divided equally between the buyers. Is there a way to achieve this goal?

    I included a sample of the spreadsheet. Typically this is about a 300-400 line report.

    Thank you.
    Last edited by allnet000; 02-03-2010 at 05:23 PM.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Multiple Values for a cell

    It's not very clear what you are looking for.
    Please post a sample worksheet with some examples.
    What happens if two people order the same item, but in different quantity?
    What about three people ordering the same item? There can be so many different scenerios, you really need to define in specific terms what the conditions are and what the outcome is for each condition.
    The programs and formulas can't think for themselves, so you have to cover all the bases and intstruct the program to follow the rules.
    modytrane.

  3. #3
    Registered User
    Join Date
    12-22-2009
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Multiple Values for a cell

    a sample should be attached now.

    If multiple people order the same product or have different quantities, they will be listed on their own line. What I am trying to solve is when two or more people split the cost of the products they bought. The only total I care about is the amount spent. I need to make sure that nobody is going over their budget. Thank you.

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Multiple Values for a cell

    see the attached example.
    not very clever, but it does the job.
    someone else may come up with clever formulas to do the job, in the meantime use this.
    you can hide the intermediate values and tables to make it look neat.
    I think VBA macro can do this easily, if you are interested, post a request.
    modytrane
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-22-2009
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Multiple Values for a cell

    Thank you very much. That works for me.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multiple Values for a cell

    Without helper columns in B15
    =SUMPRODUCT(--(ISNUMBER(FIND($A15,$C$6:$C$10))),$B$6:$B$10/(LEN($C$6:$C$10)+1-LEN(SUBSTITUTE($C$6:$C$10,",",""))))
    Last edited by ChemistB; 02-03-2010 at 05:43 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Multiple Values for a cell

    I knew someone would come up with a formula.
    Clever use of Find and Substitute functions, CB.
    modytrane

+ 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