excel - Finding matches between part of a cell and a range -
i'm using bloomberg input formula find description of bond cusip (identification number bond).
so, 1 column have: =bdp(b1, security_des) sample output of abc 4.0 05/05/2045.
in column, have maturity dates of bonds. example:
05/5/2045 03/6/2019 02/28/2038 08/17/2025 how check if "5/5/2045" in column?
to plainly check if text inside text can use countif function wildcard character *. like:
=countif(a:a,"*"&b1) (where column b dates , column sample output)
if greater 0 date found. if want true/false output can say
=countif(a:a,"*"&b1)>0 however looking @ specific case checking 05/05/2045 date listed 05/5/2045 countif not work unless put proper format. able work surrounding b1 text formula:
=countif(a:a,"*"&text(b1,"mm/dd/yyyy")) again true/false:
=countif(a:a,"*"&text(b1,"mm/dd/yyyy"))>0 and of course before, column sample output , column b dates. fill down needed.
Comments
Post a Comment