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
 
Thanks for uploading the latest file.

I copied the formulas for the opening line down into all 7 groups for the heifers.

It seems only the deaths column is picking up any data. If we take group 1 as an example at the end of 2014-15 there were 15 deaths for this group. However the new formula in the 2015-16 file is counting 4. Any ideas?

If we take heifer group 5 as another example at the end of 2014-15 there were 22 preg & 65 calved. However the new formulas are showing 0 for both at the start of 2015-16.

Also 16 heifers were sold in July 2015. These should show in group #3 as their births were pre 01-Aug-15 & after 03-Jan-14. However cell AQ62 is showing 0.

https://www.dropbox.com/s/f0glfhphswjtvzm/2015-16-Stock-Recon-V3.xlsx?dl=0
 
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
You need to copy ALL of the formulas from #1 as I amended them, sorry if that wasn't clear. Once you do then 16 will show as sold in July '15.

I will look at the other questions in the morning.
 
Upvote 0
Do you mean from group #1 heifers dun AK19:AW31 ? If so I think I have already done that haven't I in the last file I uploaded ?
 
Upvote 0
Not in the file you uploaded, it needs doing for Heifs & Bulls. All the formulas from #1 to the other #'s.
 
Upvote 0
Ok I got the minus 16 working by carrying down the formulas for the months i.e. rows 20:31

Still can't seem to get the right numbers (most are 0's) for the carry-over lines... as explained in post 161
 
Upvote 0
Upload the file so I've got the latest. The carry over figs confuse me! Births are ok, but the others I'm not sure what you're after. Do you want ALL deaths prior to 1/7/15? Against each #?
 
Upvote 0
Carry-over formulas

Group #1 heifers as an example;

1st qualification = birth dates
2nd qualification = owner
3rd qualification = sex
4th qualification = count anything that qualifies from the above in which the date of the death, preg, calving, sold, given away etc. is prior to the start of the financial year i.e. prior to 1-July-2014 or 01-July-15

e.g. birth date 05-Mar-15, dun, heifer, died on 21-Mar-15 then is would be counted as -1 (for the 2015-16 version) as it qualifies for group #1 & the death was prior to the start of the financial year
 
Upvote 0
Still looks like you haven't updated them all.

e.g.
AN19 looks like this (which is correct)
=-(IF($V$2<$D20,COUNTIFS(DateCalved,">="&$V$1,DateCalved,"<="&$V$2,Deaths,">="&$V$1,Deaths,"<="&$V$2,Owner,$AH$10,Sex,AH$13),COUNTIFS(DateCalved,">="&$V$1,DateCalved,"<="&$D20,Deaths,">="&$V$1,Deaths,"<="&$D20,Owner,$AH$10,Sex,AH$13)))

AN61 looks like (should be same as above)

=-(IF($P$2<$D62,COUNTIFS(Deaths,">="&$P$1,Deaths,"<="&$P$2,Owner,AH$10,Sex,$AH$13),COUNTIFS(Deaths,">="&$P$1,Deaths,"<="&$D62,Owner,AH$10,Sex,$AH$13)))
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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