How to compare columns using conditions

honkin

Active Member
Joined
Mar 20, 2012
Messages
385
Office Version
  1. 2016
Platform
  1. MacOS
Can anyone tell me if this is possible at all?

I have a sheet which keeps track of my horse racing results. The number of runners in the race are recorded in column F and the finish position of the runners is recorded in column AC

I want to determine which races do NOT have the same number of runners as what is shown in column F. What I mean is, there are times when a runner is removed from the race. This could be very close to the start time. Sometimes the number of runners is showing the numbers of runners which were originally supposed to run, whereas the finish position in column AC will show the number of runners which actually started.

What I am after is to find out when F might be showing, let's say 14, but AC only has 12 finish positions. Now the only way to determine which runners were in the same race is to use Date (A), Time (C) and Track (H). If those 3 match, then it is the same race.

So I guess in English it would be sort of like this as an example

If A, B & C match and F shows 14, does AC have the same number of finish positions - 14. Note: 14 is just an example. The number in F will be anywhere from 2 to 30 or so

Without using VBA, is this possible at all? Happy for just a T/F or Y/N sort of result

cheers
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I think this is a case where it would be most helpful for us to see exactly what your data looks like in this situation. Can you post an example?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
cheers Joe. Thanks for your reply

Here is a sample

2021 Latest Results June 2021.xlsb
ACFHQAC
17DateTime# of RunnersCourseHorsePosition
1801/01/202112:054SouthwellPerfect Swiss1
1901/01/202112:054SouthwellThrill Seeker2
2001/01/202112:054SouthwellTukhoom3
2101/01/202112:054SouthwellJump The Gun4
2201/01/202112:2012TramoreMr Coldstone1
2301/01/202112:2012TramoreNot Available2
2401/01/202112:2012TramoreInsignia Of Rank3
2501/01/202112:2012TramoreDrop Him In4
2601/01/202112:2012TramoreGarm Colombe5
2701/01/202112:2012TramoreIknownothing6
2801/01/202112:2012TramoreGet Phar7
2901/01/202112:2012TramoreTipperary Dexter8
3001/01/202112:2012TramoreAlexharwill9
3101/01/202112:2012TramoreGray Moonlight10
3201/01/202112:2012TramoreDo No More11
3301/01/202112:2012TramoreDer Mc509
3401/01/202112:4011SouthwellMaykir1
3501/01/202112:4011SouthwellDaafy2
3601/01/202112:4011SouthwellGeography Teacher3
3701/01/202112:4011SouthwellCompass Point4
3801/01/202112:4011SouthwellHeart Of A Hunter5
3901/01/202112:4011SouthwellTrue Companion6
4001/01/202112:4011SouthwellCrazy Spin7
4101/01/202112:4011SouthwellDe Bruyne Horse8
4201/01/202112:4011SouthwellCaesonia9
4301/01/202112:4011SouthwellBest Tamayuz10
4401/01/202112:4011SouthwellAchill Queen11
4501/01/202112:459MusselburghFiveandtwenty1
4601/01/202112:459MusselburghHerbiers2
4701/01/202112:459MusselburghFeldspar3
4801/01/202112:459MusselburghKings Creek4
4901/01/202112:459MusselburghRed Missile5
5001/01/202112:459MusselburghGo Bob Go6
5101/01/202112:459MusselburghKiss My Face7
5201/01/202112:459MusselburghAjax Tavern8
5301/01/202112:459MusselburghGypsy Traveller9
rc-vdw-place-adapted-2021-01-01


You can see that on this occasion, each race shows the same number of finishers as column F shows. Just be aware that not all finishing positions are listed as consecutive numbers. There are a group of finishing positions used for special conditions, like the horse fell at a fence or unseated a rider and so on. These are all 3 digit numbers beginning with a 5. Not that this matters; the bottom line is that the number of runners listed in column F needs to match the number of entries for that race in column AC...regardless of the actual number showing, if that makes sense. If 14 runners listed in F, then 14 entries in AC. If not, then a False or No response.

Thanks so much
 
Upvote 0
Place this formula in AD18 and copy down for all rows.
It will return TRUE if the number of records listed for that race match the number shown in column F, or it will show FALSE if it does not.
Excel Formula:
=COUNTIFS(A:A,A18,C:C,C18,H:H,H18)=F18
 
Upvote 0
Solution
Place this formula in AD18 and copy down for all rows.
It will return TRUE if the number of records listed for that race match the number shown in column F, or it will show FALSE if it does not.
Excel Formula:
=COUNTIFS(A:A,A18,C:C,C18,H:H,H18)=F18
Absolutely brilliant, Joe and thanks for the prompt reply

cheers
 
Upvote 0
You are welcome!
Glad I was able to help.
:)
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,120
Members
453,021
Latest member
Justyna P

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