I feel like I know how to do this, but nothing I'm trying is working for me.
I have a listing of words in Column D, and a list of wildcard values I want to count in Column E. I want to make a value in Column F that says TRUE/FALSe based on whether or not the wildcard match the word. Somewhat like this
D E F
bat *at* TRUE
bats *og* TRUE
cats TRUE
dog TRUE
frog TRUE
frogs TRUE
fish FALSE
bird FALSE
I triedcopied down the F column, but it's not working and I'm not sure why.Code:=countif(D1,E:E)
This is really obvious and I know I'll feel dumb when someone helps me
Thanks in advance,
Adam
Last edited by ahartman; 03-08-2010 at 11:50 AM. Reason: Solved by DonkeyOte
-Adam Hartman
Mechanical Engineer
Siemens Industry, Low Voltage Building Technology
Grand Prairie, TX
It seems a bit complicated but this works
=IF(NOT(ISERROR(SEARCH(E$1,D1))),"True",IF(NOT(ISERROR(SEARCH(E$2,D1))),"True","False"))
copied down column F
Last edited by Huron; 03-06-2010 at 06:04 AM. Reason: changed D4 to D1
Perhaps
F1: =ISNUMBER(LOOKUP(9.99E+307,SEARCH($E$1:$E$2,$D1)))
copied down
The reference to E1:E2 can be made to be dynamic if needed.
(if you want the Boolean as literal text string - ampersand a Null to the result)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
-Adam Hartman
Mechanical Engineer
Siemens Industry, Low Voltage Building Technology
Grand Prairie, TX
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks