how can I

macamarr

Board Regular
Joined
Nov 1, 2002
Messages
52
I have a table that list the date, account# and the drivers name. I need to show the delivery percentage that a driver has to a given account. I am not sure if explained this correctly:

example:

2-02-02 John 1111
2-09-02 Adam 1111
2-16-02 John 1111
2-23-02 John 1111

I need the query to show for account 1111 John 75%
1111 Adam 25%
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
The sure bet way to do this (there may be a better way) is to create three different queries.

1. Query1 Group by Name and Acct # and count the number of Acct # call this number of StopsNameDidAtAcct
2. Query2 Group by Acct # and count the number of Acct # call this TotalNumOfStopsAtAcct
3. Query3 uses both Query1 and Query2. Link the Acct # in both queries together and then take then take the StopsNameDidAtAcct / TotalNumOfStopsAtAcct

Like I said there is probably an easier way of doing this but this will work.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,221,528
Messages
6,160,343
Members
451,638
Latest member
MyFlower

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top