Adding a conditional to an odd/even query

Pumperkin

Board Regular
Joined
Jan 24, 2019
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to add a condition so that it will count odd/even references that are for today or earlier, referring to two other columns on another sheet.

When I enter it, it will not compute - not sure what I've got wrong.

Excel Formula:
=SUMPRODUCT((MOD(Unallocated!$B$2:$B$849,2)<>0)+0)
is the basic formula I have to count all odds in the column.

I want to add something like =IF('Sheet1!A:A<=TODAY() at the start, but it will not compute.

Any ideas?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,

I am trying to add a condition so that it will count odd/even references that are for today or earlier, referring to two other columns on another sheet.

When I enter it, it will not compute - not sure what I've got wrong.

Excel Formula:
=SUMPRODUCT((MOD(Unallocated!$B$2:$B$849,2)<>0)+0)
is the basic formula I have to count all odds in the column.

I want to add something like =IF('Sheet1!A:A<=TODAY() at the start, but it will not compute.

Any ideas?
To be more specific, full formula entered is:

Excel Formula:
=IF(Unallocated!C:C<=TODAY(), SUMPRODUCT((MOD(Unallocated!$B$2:$B$849,2)<>0)+0),"")

I get a #SPILL error, which I don't think I've ever seen before
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=SUMPRODUCT((Unallocated!$C$2:$C$849<=TODAY())*(MOD(Unallocated!$B$2:$B$849,2)<>0))
or
Excel Formula:
=COUNT(FILTER(Unallocated!$B$2:$B$849,(Unallocated!$C$2:$C$849<=TODAY())*(MOD(Unallocated!$B$2:$B$849,2)<>0)))
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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