Sort by Date

EDMONd

New Member
Joined
Jan 19, 2005
Messages
30
My last question was answered so promptly and accurately I have decided to give it another try. I am trying to sort data by date to create weekly production tracking sheets. I have created 52 sheets for the weeks of the year and would like to send the info to the right sheet by the date which is entered on daily production. Any thoughts?
EDMONd
 
Ill get this yet.
Machines by Number.xls
ABCDEFGHIJKLMN
1PARTNUMBEROPERATORSET-UPBYBASEPERDAYQUALITY
2AxelBandy3600100
3OP#CYCLETIME
4MACHINETOTAL8
527ORDERQTY87WORKHOURSPROD.%
68
7DATEQUANTITYREJECTEDDAYRUN
8********************************************************************************************************
902.4
10872.4
110
120
130
140
27
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
So your problem is really about fixing the #Div/0 error? See the Excel Help topic 'Correct a #DIV/0! error'. An extract from thsi topic states...

"Prevent the error value from displaying, using the IF worksheet function. For example, if the formula that creates the error is =A5/B5, use =IF(B5=0,"",A5/B5) instead. The two quotation marks represent an empty text string. "

Ideally you should correct this in all your source sheets (see why having 72 sheets may not be a good idea) or alternatively use an if statement looking for ISERROR and put in 0. If there is an error, this will affect your efforts in trying to sum and average results.

eg for cell B2 in your example ...
=If(Iserror('[Machines by Number.xls]1'!$M$9),0,'[Machines by Number.xls]1'!$M$9)
 
Upvote 0
I have corrected all but 1 of my #div/0 errors. The last formula I need to fix is this....=SUMIF(L9:L40,">0")/COUNT(E9:E40:G9:G40)...
It is enevitable that I will have a 0 somewhere in this mess of cells. Can someone correct this for me. I have been trying with the IF worksheet function without success. My real issue is still sorting by date
Thank you
EDMONd
PS This formula is in cell M9 on the first sheet I posted.
EDMONd
 
Upvote 0
Hi, this is probably what you want...

=IF(COUNT(E9:E40:G9:G40)=0,0,SUMIF(L9:L40,">0")/COUNT(E9:E40:G9:G40))

If your DiV/0 totals are all numbers how are you going to sort by date. Where are the date fields? If your wanting to sort why not use Data\Sort on each column?
 
Upvote 0
My dates are A9:A40. The corresponding counts are E9:E40.
Can Data/Sort be used for dates? The formula that you posted earlier ....=If(Iserror('[Machines by Number.xls]1'!$M$9),0,'[Machines by Number.xls]1'!$M$9)
.... worked like a charm.
Thanks EDMONd
PS I'm getting closer. :)
 
Upvote 0
Yes, Data|Sort can be use for dates. Make sure you select all columns and not just the date ones before selecting sort.
 
Upvote 0

Forum statistics

Threads
1,215,770
Messages
6,126,791
Members
449,336
Latest member
p17tootie

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