help with nest countif

nnguys

New Member
Joined
Dec 31, 2011
Messages
36
Dear all,

I have been stumped at the first stage of doing a nest if countif formula.

My problem is I need to isolate one particular group of text from other this is the if formula

I have a list like below

aeb123
kg234
qe965
aeb250
qe1001


etc

I want to isolate the aeb only but as each has a unique number after it I thought I would try "aeb*"=if(a1:a2000="aeb*" hoping it would ignore the number but it does not and return a 0 result.

This works fine in the countif section

Until I get past this bit I can continue.
Any help much appreciated
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi
The end result I want is =countif(A1:A300,"AEB") giving me a total of AEB but the if command is not recognising AEB unless i type the whole number as well
 
Upvote 0
Hi
The end result I want is =countif(A1:A300,"AEB") giving me a total of AEB but the if command is not recognising AEB unless i type the whole number as well

I'm not asking whether you have a formula. I'm asking what outcome you expect to see for the sample you posted.
 
Upvote 0
Hi
The end result I want is =countif(A1:A300,"AEB") giving me a total of AEB but the if command is not recognising AEB unless i type the whole number as well

Presumed he/she had here ^^

Only became a syntax issue.
 
Upvote 0
maybe I did not explain the problem well let me start again.

A B
aeb2123 5c2
qe543 5c2
kg555 5c2
aeb115 49998
qe478 49998
qe887 5na
aeb999 5na
kg12 5na

I want a countif of 5c2, 49998 and 5na but ONLY for any fields in column A that starts with aeb I thougt an If command nesting a countif would do it but cant get the IF command to work as suck "aeb*"

Hope that makes it clearer
 
Upvote 0
maybe I did not explain the problem well let me start again.

A B
aeb2123 5c2
qe543 5c2
kg555 5c2
aeb115 49998
qe478 49998
qe887 5na
aeb999 5na
kg12 5na

I want a countif of 5c2, 49998 and 5na but ONLY for any fields in column A that starts with aeb I thougt an If command nesting a countif would do it but cant get the IF command to work as suck "aeb*"

Hope that makes it clearer

Try...

=SUM(COUNTIFS(A:A,"aeb*",B:B,{"5c2",49998,"5na"}))
 
Upvote 0

Forum statistics

Threads
1,214,383
Messages
6,119,196
Members
448,874
Latest member
Lancelots

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