ISODD in COUNTIFS statement

pistonbroke

New Member
Joined
Jan 15, 2003
Messages
49
Hello all. I am trying to use the ISODD worksheet function in a COUNTIFS statement, on a range of cells with two additional criteria, but cannot get the Odd Number check to work.

=COUNTIFS(R6C48:R503C48,"<"&R2C43,R6C47:R503C47,"=0", R6C53:R503C53,"ISODD")

So counting cells when 3 criteria are TRUE: Value less than a constant in a cell | Value equal to 0 in a column of the same row | Value in rows of another column are ODD numbers.

I probably have the ISODD Syntax incorrect, i also tried the MOD function with 2 as the divisor, but couldn't make that work either.

Any ideas appreciated - thank you for taking the time to have a look at this all.

Thanks, Kevin
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
DRSteele, thanks for the reply. I may not have correctly indicated the ranges i am working with, so attached is a snapshot. The formula as you wrote for me did not work likely because ranges were incorrect

1654552547614.png


Column 47 is check for Zero; Col 48 is check for less than Row 2 Col 43 value; Col 53 is check if value is ODD.. The check range is Rows 6 to 503. In the small section shown here, rows 10 and 12 should both Count 1 (odd #'s in Col 53 and other criteria true), others would return Zero.

Thankyou again, Kevin
 
Upvote 0
Please upload sample data from a simple spreadsheet. See my signature below for a link to the Forum's app.
 
Upvote 0
2022 Drafting Summary V1.xlsm
AOAPAQARASATAUAVAWAXAYAZBABBBCBD
1Max GreenMin YellowGreen Race Lap Shifting (Count of Upshifts per Lap)
2Enter Max Green Laptime:35.0035.0005All LapsGreenYello & RSCheckNo Shifts1 Per Lap2 Per Lap3 Per Lap4 Per LapOdd #
3(Sanity Check for Lap Green Math Counter)24517669Ok00017300
4Green Flag LapsCalc Lap Time NGearNGearLuke ID Shift LapsLuke ID Shift LapsLuke ID Shift LapsCorr Speed [mph]Corr Speed [mph]PcLoad [%]
5RangeMaxMinMaxMinMaxRangeMinMaxMin
6A DriverA Racecar6/5/2022, 064:58:45 AMLap 100:36.1136.10250000.5
7A DriverA Racecar6/5/2022, 064:58:45 AMLap 200:34.3034.27350660.6
8A DriverA Racecar6/5/2022, 064:58:45 AMLap 300:34.1034.103561260.5
9A DriverA Racecar6/5/2022, 064:58:45 AMLap 400:34.2034.1835121860.6
10A DriverA Racecar6/5/2022, 064:58:45 AMLap 500:34.7034.7135182470.7
11A DriverA Racecar6/5/2022, 064:58:45 AMLap 600:34.6034.5835243060.6
12A DriverA Racecar6/5/2022, 064:58:45 AMLap 700:34.2034.2335303650.7
13A DriverA Racecar6/5/2022, 064:58:45 AMLap 800:34.1034.0535364260.5
14A DriverA Racecar6/5/2022, 064:58:45 AMLap 900:34.1034.0935424860.6
2022 Gateway R15 Car 45
Cell Formulas
RangeFormula
AR2AR2=AQ2+0.0005
AT3AT3=COUNTA(AT6:AT503)
AU3AU3=COUNTIFS($AV$6:$AV$503,"<"&$AR$2,$AU$6:$AU$503,"=0")
AV3AV3=COUNTIFS($AV$6:$AV$503,">"&$AQ$2,$AU$6:$AU$503,"=1")
AW3AW3=IF((AU3+AV3)<>AT3,"Wrong","Ok")
AY3AY3=COUNTIFS($AV$6:$AV$503,"<"&$AQ$2,$AU$6:$AU$503,"=0", $BA$6:$BA$503,"=0")
AZ3AZ3=COUNTIFS($AV$6:$AV$503,"<"&$AQ$2,$AU$6:$AU$503,"=0", $BA$6:$BA$503,"=2")
BA3BA3=COUNTIFS($AV$6:$AV$503,"<"&$AQ$2,$AU$6:$AU$503,"=0", $BA$6:$BA$503,"=4")
BB3BB3=COUNTIFS($AV$6:$AV$503,"<"&$AQ$2,$AU$6:$AU$503,"=0", $BA$6:$BA$503,"=6")
BC3BC3=COUNTIFS($AV$6:$AV$503,"<"&$AQ$2,$AU$6:$AU$503,"=0", $BA$6:$BA$503,"=8")
BD3BD3=SUMPRODUCT(($AV$6:$AV$503<$AQ$2),($AU$6:$AU$503=0),(ISODD(+$BA$6:$BA$503)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AS6:CB509Cellcontains a blank value textNO
AW3Cell Valuecontains "Wrong"textNO
AS6:CB508Expression=$AV6<=$AQ$2textNO
AS6:CB509Expression=$AV6>$AQ$2textNO
 
Last edited by a moderator:
Upvote 0
OK, this worked... after reading that help on the Function, i used * (multiplier) in place of commas to seperate the Arrays and force 1 or 0 in place of true and false for the count to work (apparently two neagtive symbols do tyhe same but didnt work for me) !

Thankyou DRSteele for the pointers and help...

=SUMPRODUCT((R6C48:R503C48<R2C43)*(R6C47:R503C47=0)*(ISODD(+R6C53:R503C53)))

Great Board here - thanks all who took a look...
 
Upvote 0
Solution
I don't know why it lined out rows below Row 4 ?? I selected rows 1 to 14
I suspect that you accidentally edited the BB code using strike-through. I have corrected it for you.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,492
Members
448,967
Latest member
visheshkotha

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