COUNTIFS and EXACT

whitebuffalofarm

New Member
Joined
Apr 25, 2010
Messages
20
This should be simple, but i'm having trouble getting it to understand me.

Column L is all i'm working on, and when i get it i think i can edit it to fit.

What i want to ask.. COUNTIF any cell in column K has the same text as K4, AND also has the word "out" in column F.

Excel Workbook
FGHIJKL
4outFLY#VALUE!
5outFLY2
Sheet1
Excel 2007
Cell Formulas
RangeFormula
F4=IF(LEFT($B4, 6)="POSTED", "", IF($E4="picked", SUBSTITUTE(IF(MID($B4,FIND(" to ", $B4)+4,LEN($B4))="underperform.","","out"),"outperform","out"), ""))
F5=IF(LEFT($B5, 6)="POSTED", "", IF($E5="picked", SUBSTITUTE(IF(MID($B5,FIND(" to ", $B5)+4,LEN($B5))="underperform.","","out"),"outperform","out"), ""))
G4=IF(LEFT($B4, 6)="POSTED", "", IF($E4="picked", SUBSTITUTE(IF(MID($B4,FIND(" to ", $B4)+4,LEN($B4))="outperform.","","under"),"underperform","under"), ""))
G5=IF(LEFT($B5, 6)="POSTED", "", IF($E5="picked", SUBSTITUTE(IF(MID($B5,FIND(" to ", $B5)+4,LEN($B5))="outperform.","","under"),"underperform","under"), ""))
H4=IF(LEFT($B4, 6)="POSTED", "", IF(ISNUMBER(SEARCH("ended",$B4)), "ended", ""))
H5=IF(LEFT($B5, 6)="POSTED", "", IF(ISNUMBER(SEARCH("ended",$B5)), "ended", ""))
I4=IF(LEFT($B4,6)="Posted ","",IF($H4="ended",SUBSTITUTE(IF(MID($B4,FIND(" ended ",$B4,1)+7,5)="under","","out"),"outpe","out"),""))
I5=IF(LEFT($B5,6)="Posted ","",IF($H5="ended",SUBSTITUTE(IF(MID($B5,FIND(" ended ",$B5,1)+7,5)="under","","out"),"outpe","out"),""))
J4=IF(LEFT($B4,6)="Posted ","",IF($H4="ended",SUBSTITUTE(IF(MID($B4,FIND(" ended ",$B4,1)+7,5)="under","under",""),"outpe",""),""))
J5=IF(LEFT($B5,6)="Posted ","",IF($H5="ended",SUBSTITUTE(IF(MID($B5,FIND(" ended ",$B5,1)+7,5)="under","under",""),"outpe",""),""))
K4=IF(LEFT($B4, 6)="POSTED", "", IF($E4="picked", MID($B4, FIND("^",SUBSTITUTE($B4, " ", "^", 2))+1, 3), SUBSTITUTE(MID($B4,FIND(" on ", $B4)+4,LEN($B4)),".","")))
K5=IF(LEFT($B5, 6)="POSTED", "", IF($E5="picked", MID($B5, FIND("^",SUBSTITUTE($B5, " ", "^", 2))+1, 3), SUBSTITUTE(MID($B5,FIND(" on ", $B5)+4,LEN($B5)),".","")))
L4=COUNTIFS(K:K,EXACT($K4,K:K),(Sheet1!F$4:F$1048576),"out")
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
sure, Aladin Akyurek, do you mean like this?

Excel Workbook
EFGHIJKLMNOP
3
4pickedoutFLY#VALUE!2,0
5pickedoutFLY22,0
6pickedoutC t11,0
7endedoutC-1-1,0
8endedoutLDK-1-1,0
9endedoutYGE-1-1,0
10pickedunderCOY10,1
Sheet1
Excel 2007

Again, i think if i had the syntax for L4 i could edit most of the rest.
 
Upvote 0
sure, Aladin Akyurek, do you mean like this?

Excel Workbook
EFGHIJKLMNOP
3
4pickedoutFLY#VALUE!2,0
5pickedoutFLY22,0
6pickedoutC t11,0
7endedoutC-1-1,0
8endedoutLDK-1-1,0
9endedoutYGE-1-1,0
10pickedunderCOY10,1
Sheet1
Excel 2007

Again, i think if i had the syntax for L4 i could edit most of the rest.
What i want to ask.. COUNTIF any cell in column K has the same text as K4, AND also has the word "out" in column F.
Try one of these...

This formula will work in any version of Excel.

=SUMPRODUCT(--(F4:F10="out"),--(K4:K10=K4))

This formula will work in Excel versions 2007 and later.

=COUNTIFS(F4:F10,"out",K4:K10,K4)
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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