countifs starts with

Status
Not open for further replies.

Leticia

New Member
Joined
Jun 9, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hi!

I have the formula COUNTIFS(INDIRECT("'"&$E12&"'!$I:$I");"A*")
but instead of A* (to say that it should select the values that start with that) I want to put a cell (f4) which says A.

How can I do that? Thank you very much
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Excel Formula:
=COUNTIFS(INDIRECT("'"&$E12&"'!$I:$I");F4&"*")
 
Upvote 0
Solution
COUNTIFS(INDIRECT("'"&$E12&"'!$I:$I");F4&"*")
 
Upvote 0
How about
Excel Formula:
=COUNTIFS(INDIRECT("'"&$E12&"'!$I:$I");F4&"*")
Hi! It does not work. I attach a capture of my case simplified (it does not let me use the mini sheet)
1625391988417.png


And the code in H5 is =COUNTIFS($B:$B;H$4&"*";$D:$D;"<>ZZZ";$C:$C;AND(LEFT($F5;4);RIGHT($F5;4)))

Issue 1: H$4&"*" does not get it as select if in B it starts with A
Issue 2: When Code has more than 1 values, I cannot select to choose always when some of the 4 digits match C
 
Upvote 0
Issue 1: H$4&"*" does not get it as select if in B it starts with A
That is not correct, it is the last part of the formula that does not work. Even if it did you would get 0 as single cell cannot equal both 1998 AND 2008
 
Upvote 0
Duplicate to: Countifs with multiple criteria OR

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,818
Messages
6,181,151
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