randiliana
New Member
- Joined
- Dec 20, 2016
- Messages
- 5
What I am trying to do, is to count all the cows, bred to a certain bull that are still in the herd, and that are going to calve on the first cycle (easy stuff). Problem is that the 1st cycle dates vary a bit from bull to bull.
So I want it to pull the date off of a 2nd sheet (Bulls) and compare it to the due dates on the first sheet (Breeding) and then return the answer on another sheet(Breeding Anal)... what I've got is
=COUNTIFS(Breeding!$D:$D,B$1,Breeding!$K:$K,"<>Y",Breeding!$R:$R,">0",Breeding!$R:$R,"<="&Bulls!G2)
But I want to make it dynamic, so I don't literally have to go and change "<="&Bulls!G2 for each bull (there's 14 columns)
I've tried
=COUNTIFS(Breeding!$D:$D,B$1,Breeding!$K:$K,"<>Y",Breeding!$R:$R,"<="Index(Bulls!$G:$G,Match(B$1,Bulls!$A:$A)
but that doesn't work... any ideas?
The Breeding Sheet
The Bulls Sheet
The Analysis Sheet
So I want it to pull the date off of a 2nd sheet (Bulls) and compare it to the due dates on the first sheet (Breeding) and then return the answer on another sheet(Breeding Anal)... what I've got is
=COUNTIFS(Breeding!$D:$D,B$1,Breeding!$K:$K,"<>Y",Breeding!$R:$R,">0",Breeding!$R:$R,"<="&Bulls!G2)
But I want to make it dynamic, so I don't literally have to go and change "<="&Bulls!G2 for each bull (there's 14 columns)
I've tried
=COUNTIFS(Breeding!$D:$D,B$1,Breeding!$K:$K,"<>Y",Breeding!$R:$R,"<="Index(Bulls!$G:$G,Match(B$1,Bulls!$A:$A)
but that doesn't work... any ideas?
The Breeding Sheet

The Bulls Sheet

The Analysis Sheet
