Formula help

Dawei

New Member
Joined
Jul 17, 2007
Messages
36
Hi,

I am a excel newbie and I need some help with a formula.

I want to find the percentage of orders delayed from a list of orders, and I want them to be divided by suppliers so I can find the percentage of orders delayed from each supplier. I thought I can use the list of orders since it has a column where you can find a time of how much each order was delayed, if it says ,"", there was no delay.

My formula from the column next to the one I am working on right now where I find out the average delay divided by supplier is the following:

=LOOKUP(9,99999999999999E+307;CHOOSE({1;2};0;AVERAGE(IF('Order statistics'!$B$2:$B$10=A8;'Order statistics'!$D$2:$D$10))))

I understand that my explanation is a bit complicated but if somebody could give me a hint to work from I would bu thankful.

I was thinking that I need to find all ,"", compare those to the orders that was delayed per each supplier and thereby find the percentage, but how to do this...

Thanks

David
 
Hi Brian,

Sorry, I am being unclear. What I am looking for is not suppliers % of total delays. I am looking for how many % of each suppliers orders that are delayed. That is, in Meidaos case, one order delayed and one order delivered in time, 50% of Meidaos orders are delayed.

Sorry for that.

And thanks for the answer.

Dave
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
From your example, try,

=SUMPRODUCT(--(A2:A10=A3),--(B2:B10=""))/COUNTIF(A2:A10,A3)

If you don't have an English version of Excel, you'll have to have this translated. If not, why are you using ; and extra "?
 
Upvote 0
Thanks Brian! That worked!

Yes I am using a Swedish version of Excel which means you need to use (;) instead of (,).

So my formula looks like this:
=PRODUKTSUMMA(--('Order statistics'!B2:B10=A10);--('Order statistics'!D2:D10=""))/ANTAL.OM('Order statistics'!B2:B10;A10)

That is:

=SUMPRODUCT(--('Order statistics'!B2:B10=A10),--('Order statistics'!D2:D10=""))/COUNTIF('Order statistics'!B2:B10,A10)

I just have one more problem to go! If one supplier have 3 orders connected to them and they are all late I get the result 0%. And if all orders were in time I get 100%.

This is obviously because the first part of the formula looks for orders that were in time and which means if all were late the result will be 0. Perhaps I need Excel to look for all orders that were late instead?

Thank you very much Brian!
 
Upvote 0

Forum statistics

Threads
1,225,072
Messages
6,182,696
Members
453,132
Latest member
nsnodgrass73

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