• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search Specific text

Lasantha

Member
Dear All,


Could you please help me to search a word in a cell which starting with “Ref:” . please see the below example. This is the cell value. So I need to get the date next to “Ref:”


Could you please create formula for this.


“Check Payment from Guarantor (5128) on 07/02/2018 Ref: 07/02/2018 07022018 Lock box $1583.54 BOA PG#54”
 

Attachments

  • Test.xlsx
    8.5 KB · Views: 3
Try.................

In C2, copied down (for UK Date setting user only) :

=0+MID(REPLACE(A2,FIND("Ref:",A2)+11,,MID(A2,FIND("Ref:",A2)+5,3)),FIND("Ref:",A2)+8,10)

p.s.

1] The date after the wording "Ref:" appeared in USA date type.

2] So, if you are using USA Date setting, please use Vletm's formula (in post #.3).

3] If you are using UK Date setting, please used the above longer formula.



Regards
Bosco
 

Attachments

  • DateExtract.xlsx
    9.7 KB · Views: 3
Last edited:
Try.................

In C2, copied down (for UK Date setting user only) :

=0+MID(REPLACE(A2,FIND("Ref:",A2)+11,,MID(A2,FIND("Ref:",A2)+5,3)),FIND("Ref:",A2)+8,10)

p.s.

1] The date after the wording "Ref:" appeared in USA date type.

2] So, if you are using USA Date setting, please use Vletm's formula (in post #.3).

3] If you are using UK Date setting, please used the above longer formula.



Regards
Bosco
Thank you so much...
 
Back
Top