Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2017, 09:19 AM
teligence teligence is offline Search for specific data in a text string Windows 7 64bit Search for specific data in a text string Office 2016
Novice
Search for specific data in a text string
 
Join Date: Aug 2016
Posts: 2
teligence is on a distinguished road
Default Search for specific data in a text string

I need a formula that shows a numeric result for 1 - 3 digit "number as text" found in a text string.


Example text:
FULL NAME: Ean Tralfaz AGE: 23 YEARS EMPLOYED: 9
Notes:
There is always a single space after a label's colon
There is always a single space after a label's value
The length of a label's result varies
In this example, is there a way to search for "AGE:" and show numeric result for "23"?
Reply With Quote
  #2  
Old 05-20-2017, 11:51 AM
xor xor is offline Search for specific data in a text string Windows 10 Search for specific data in a text string Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

With your text in A1 try:

--MID(A1,FIND("AGE",A1)+5,FIND(" ",A1,FIND("AGE",A1)+5)-(FIND("AGE",A1)+5))
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for specific data in a text string VBA Table – Search All Tables - Find & Replace Text in Table Cell With Specific Background Color jc491 Word VBA 8 09-30-2015 06:10 AM
Search for specific data in a text string Search for multiple texts in cell, return specific text mariur89 Excel 4 12-14-2014 01:33 AM
Search for specific data in a text string Search first section for specific string... donaldadams1951 Word VBA 4 03-14-2014 11:24 AM
Search for specific data in a text string Way to search for a string in text file, pull out everything until another string? omahadivision Excel Programming 12 11-23-2013 12:10 PM
Search for specific data in a text string Convert numbers to a specific text string francis Excel 1 10-06-2011 01:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft