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
 

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.
Thanks.

That works however I have made some more changes to the presentation of the summary sheet. It is complicated because we have 2 different owners for the animals.

Would be great if you could place formulas in the columns shaded blue. I can then copy across to other groups as required as they are all just replicated.

It is basically all the sample principles as the previous file however I need the numbers to reflect the owner which is in column N of the source data sheet which can be cross referenced with the entries in rows 10:13 on the summary sheet.

https://www.dropbox.com/s/vqc8mxl4ydu3uhb/Stock-Numbers-Gaz-Chops-11-Jul-15.xlsx?dl=0
 
Upvote 0
Just taking a look, which column do you want to lookup Bull/Heiffer/Births & Still Born from?
 
Upvote 0
From column W in the Stock Source Data worksheet then cross referenced with column N in the same worksheet for the owner

The formulas you have in the column CM, CS & CY seem correct. They just need adjusting to reflect the owner - either Sier or Dun
 
Upvote 0
This part won't work, column W either says Heiffer, Bull or Death! So if it says Death then it won't say Heiffer or Bull!


Code:
[TABLE="width: 178"]
<colgroup><col><col span="2"><col><col span="2"><col><col span="2"><col></colgroup><tbody>[TR]
[TD="colspan: 10"]Death[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[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]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="colspan: 4"]Sier[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="colspan: 4"]Dun[/T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ote 0
Hi

Column W will only have 3 options - Heifer, Bull or Still Born

The deaths will come from the Deaths-2014-15 worksheet. I just realized that this worksheet needs another column which will go in between Ear Tag # and Birth Date which will have either Heifer or Bull
 
Upvote 0
Thanks.

I've incorporated the formulas. Seems to be working for the 1st group. However can't work out why it is not working in Y36 to AT47. It is something to do with the last part of the formula... *('Stock-Source-Data'!$W$9:$W$1634=$Y$8) If this is removed the formula returns the number however it is not liking the reference of Heifer, Bull & Still born

https://www.dropbox.com/s/ujzomwcm2g7n4b7/Gaz-15-Jul-15.xlsx?dl=0
 
Upvote 0
Looks like you haven't copied the formulas over correctly? P18 should reference "Birth", it doesn't!
 
Upvote 0
I made that adjustment intentionally as I want column P & S to show the total number of births regardless of whether they were a heifer, bull or still born

The problem seems to be when I copy down the formulas. For example Y17:Y29 is working correctly. However Y36:Y47 doesn't seem to be picking up the numbers ??
 
Upvote 0

Forum statistics

Threads
1,223,919
Messages
6,175,368
Members
452,638
Latest member
Oluwabukunmi

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