Closed Thread
Results 1 to 3 of 3

What's the easiest way

  1. #1
    JeremyH1982
    Guest

    What's the easiest way

    I need to come up with a spreadsheet, instead of a database, that will allow
    someone to enter

    Salesman; Company Sold To; State the company is in; & The amount of pairs
    the company bought.

    I'm thinking Column A to be Salesman; Column B Companies; so forth...

    What would be the easiest way, to show the percentage of overall pairs sold
    to a certain state?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    How about this

    Where E1 is State your looking at. Also format cell with Formula to %

    =SUMPRODUCT((--($C$2:$C$30=E1)*(D2:D30)/SUM(D2:D30)))

    VBA Noob

  3. #3
    JeremyH1982
    Guest

    Re: What's the easiest way

    I have tried it; I put that formula in E column;

    Column A is my Salesman; Column B is the company sold to; Column C is the
    state the company is in; Column D is the amt of pairs sold;

    Then in E1 I have MI, being Michigan state; I copied that formula into E2;
    and dragged it down. the ones below are showing #DIV/0 but that's because
    there is no information in the corresponding cells, But I don't think it's
    accurate

    Nevermind, I got it.

    I am using the formula =If($c2="MO", $d2, 0)
    and putting that formula into Column F, then for another state put in in G,
    and H and I

    then at the bottom I will use another formula, to calculate the percentages.

    Thank you.



Closed 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