Looking for a wildcard in a SUMPRODUCT function

lcmerten

New Member
Joined
Aug 28, 2013
Messages
1
Good Afternoon!

So - I have two columns of data. Column F contains a regions (Africa, Middle East, Europe or UK) and column G contains a month and date range of an event occuring within that region, hoever not all cells in column G contain data. I would like to create a formula that will count the number of occurances of, for example, "Africa" in column F only if there is a value (any value) in the corresponding row of column G. The formula I have so far is this:

=SUMPRODUCT(($F$3:$F$271="Africa")*($G$3:$G$271="*"))

With "*" being intended as a wildcard (as it works in a countif function). However this is not working. Can anyone help me with finding wildcard or even a new formula to caluclate this accurately???

A snapshot of the data is:
[TABLE="width: 143"]
<TBODY>[TR]
[TD]</SPAN>
[/TD]
[TD]</SPAN>[/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD]</SPAN>[/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]</SPAN>[/TD]
[TD] [TABLE="width: 500"]
<TBODY>[TR]
[TD]Africa[/TD]
[TD]Mar (2-7)[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Jul [/TD]
[/TR]
[TR]
[TD]Africa[/TD]
[TD]Jun (7-9)[/TD]
[/TR]
[TR]
[TD]Middle East[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Europe[/TD]
[TD]Feb (12-15)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]</SPAN>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL></COLGROUP>[/TABLE]


Worth noting that it needs to be calculating continuously as new dates will always be added so pivots are out.

Thanks in advance

Laura
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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