SUMPRODUCT or IF / OR

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. MacOS
Hi all,

AGFP Example.jpg


Please can someone help with my formula, below (in column D of the ‘All Completed Runs - AGFP Bingo’ worksheet):

=IFERROR(IF(B4="","",(SUMPRODUCT(--(RIGHT('All Completed Runs'!$U$4:$U$2003,2)=A4)))),"")

I am attempting to count the number of occasions where column U entries in the ‘All Completed Runs’ worksheet end in the values in column A of the ‘All Completed Runs - AGFP Bingo’ worksheet. It seems to work, apart from 01-09 - which have the leading 0. Whereas the entries in column U of ‘All Completed Runs’ worksheet do not. Is there a way to cater for this for the 01-09 ones? Perhaps some sort of if / or function?

The aim is to basically count all occasions in U of the ‘All Completed Runs’ worksheet where the last 2 digits correspond with column A entries in the ‘All Completed Runs - AGFP Bingo’ worksheet.

The formulas in B and C work correctly, but they are only finding the first occasion, rather than counting all occasions.

I have included some manual entries for what should be the count in column F (red incorrect, green correct).

I have included a link to the file, below:


The file is small and will open straight up.

Thanks in advance,

Olly.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Maybe
Excel Formula:
=IFERROR(IF(B4="","",(SUMPRODUCT(--(TEXT(RIGHT('All Completed Runs'!$U$4:$U$2003,2),"00")=A4)))),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,233
Messages
6,123,771
Members
449,122
Latest member
sampak88

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