Complex - Multiple Criteria

dunmore83

Well-known Member
Joined
Aug 24, 2011
Messages
540

Excel 2012
BCDEFGHIJKLMNOPQ
2Ear TagSexNLISBirth Date01-Jul-1402-Jul-1403-Jul-1404-Jul-1405-Jul-1406-Jul-1407-Jul-1408-Jul-14
3
4
51658Heifer-04.09.1104-Sep-111,0311,0321,0331,0341,0351,0361,0371,038
62112Heifer98212349040565410.08.1210-Aug-12690691692693694695696697
7272Heifer98212349042566827.08.1227-Aug-12673674675676677678679680
82282Heifer98212349042575728.09.1228-Sep-12641642643644645646647648
93007Heifer98212349042517624.01.1324-Jan-13523524525526527528529530
103008Heifer98212349041793224.01.1324-Jan-13523524525526527528529530
113018Heifer98212349042585829.01.1329-Jan-13518519520521522523524525
123026Heifer98212349884756131.01.1331-Jan-13516517518519520521522523
133040Heifer98212349044906306.02.1306-Feb-13510511512513514515516517
143042Heifer98212349041773706.02.1306-Feb-13510511512513514515516517
153053Heifer98212349040556007.02.1307-Feb-13509510511512513514515516
163052Heifer98212349044912507.02.1307-Feb-13509510511512513514515516
173051Heifer98212348946245407.02.1307-Feb-13509510511512513514515516
183055Heifer98212349042596708.02.1308-Feb-13508509510511512513514515
193054Heifer98212349042584808.02.1308-Feb-13508509510511512513514515
203064Heifer98212349041751511.02.1311-Feb-13505506507508509510511512
213061Heifer98212349041970811.02.1311-Feb-13505506507508509510511512
223065Heifer98212349884768512.02.1312-Feb-13504505506507508509510511
233069Heifer98209101630871614.02.1314-Feb-13502503504505506507508509
243071Heifer98212349044781914.02.1314-Feb-13502503504505506507508509
253074Heifer98212349042503917.02.1317-Feb-13499500501502503504505506
263084Heifer98212349022669126.02.1326-Feb-13490491492493494495496497
273088Heifer98212349042514028.02.1328-Feb-13488489490491492493494495
283090Heifer98212348946404203.03.1303-Mar-13485486487488489490491492
293098Heifer98212348945935611.03.1311-Mar-13477478479480481482483484
303104Heifer98212348946636001.04.1301-Apr-13456457458459460461462463
313161Heifer98212349022404109.08.1309-Aug-13326327328329330331332333
323176Heifer98200019176311915.08.1315-Aug-13320321322323324325326327
333179Heifer98200019180582116.08.1316-Aug-13319320321322323324325326
343190Heifer98200019172751218.08.1318-Aug-13317318319320321322323324
353186Heifer98212349885183918.08.1318-Aug-13317318319320321322323324
363191Heifer98200019173670919.08.1319-Aug-13316317318319320321322323
ages-excel-forum
 
You're welcome, not easy sometimes, but we got there.

I'm offline for a few hours, post what you're after, if no-one else picks it up I will as soon as i can.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I need a formula to calculate the average age of the total numbers the formula (that is now working!!) for each month Jul-14 to Jun-15

For example in the above scenario if we set the min date to 18-Apr-14 & the max date to 13-Sep-14 we would have a total of 9 that would go in Sep-14. The numbers in J5:O13 are the number of days old each animal is. The average days would be 82.52

Make any sense
 
Upvote 0
So would you want the age as at the 13th Sept for each month? As below

Code:
[TABLE="width: 290"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]18-Apr-14[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Ave Age[/TD]
[TD="align: right"]13-Sep-14[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pre - Jul-14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]146.40[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]Jul-14[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]146.40[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]Aug-14[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]146.40[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]Sep-14[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Oct-14[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Nov-14[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Dec-14[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Jan-15[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Feb-15[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Mar-15[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Apr-15[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]May-15[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]Jun-15[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]82.89[/TD]
[TD="align: right"]9[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Not quite... I want the average age for the number summed for each month in the original formula.

Will post another example
 
Upvote 0

Excel 2012
ABCDEFGHIJKLMNOPQRSTUVWX
1
2
3
4
5
6Av. AgeStart #Av. AgeStart #Deaths
7
8
924-Jan-1304-Sep-14
10
11
1201-Oct-1329-Jan-15
13
14
151420
16Jul-14311420
17Aug-14311420
18Sep-143014216
19Oct-143114225
20Nov-143014265
21Dec-1431142104
22Jan-1531142123
23Feb-1528142123
24Mar-1531142123
25Apr-1530142123
26May-1531142123
27Jun-1530142123
Stock-Summary
 
Upvote 0
So in column P & J / rows 16:27 I need the average age (in months) for the numbers summed in column M & S... so for column M even though there are 142 each month their ages will be increasing with respect to the layout of the source data sheet which has a column for each day of the year
 
Upvote 0
Hi,
Not sure as to what date you want to use to calculate the age? In your example above, do you want the age in Col J to be as at 01-Oct-13 and in Col P to be as at 29-Jan-15?
Also, how do you want to calculate the Months? Days divided by 30?

Is it possible for you to upload a larger set of data to Dropbox (or similar), then post the link here (or PM it to me), it will make it easier to test. If you don't want all to have access you could password protect it and PM me the password.
 
Upvote 0
Can excel use the MONTH option to convert days to MONTHS?

Otherwise we can use the days in each month in column G

I need the average age of each group in column M, Y, AK, AW, BI etc. at the end of each of the months in column D

There are also some other formulas I need but this will be a start!
 
Upvote 0

Forum statistics

Threads
1,223,926
Messages
6,175,425
Members
452,641
Latest member
Arcaila

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