Extract values from cell

Ananthak275

Board Regular
Joined
Aug 22, 2020
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
  2. MacOS
I have the follow values in a cell:
Original ValueBlockChainRetweetBlockChain
BlockChain:xyz Retweet:abc BlockChain:adcxyzabcadc


would like to use excel formula and VBA
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Try.
BlockChain.xlsx
ABCD
1BlockChainRetweetBlockChain
2BlockChain:xyz Retweet:abc BlockChain:aEcxyzabcaEc
工作表1
Cell Formulas
RangeFormula
B1B1=LEFT(A2,FIND(":",A2)-1)
C1C1=MID(A2,FIND(" ",A2)+1,FIND(":",A2,FIND(" ",A2))-FIND(" ",A2)-1)
D1D1=MID(A2,FIND(" ",A2,FIND(" ",A2)+1)+1,FIND(":",A2,FIND(" ",A2,FIND(" ",A2)+1))-FIND(" ",A2,FIND(" ",A2)+1)-1)
B2B2=MID(A2,FIND(":",A2)+1,FIND(" ",A2)-FIND(":",A2)-1)
C2C2=MID(A2,FIND(":",A2,FIND(":",A2)+1)+1,FIND(" ",A2,FIND(" ",A2)+1)-FIND(":",A2,FIND(":",A2)+1)-1)
D2D2=RIGHT(A2,LEN(A2)-FIND(":",A2,FIND(":",A2,FIND(":",A2)+1)+1))
 
Upvote 0
Solution
Hello,

try
Book1
ABCD
1Original ValueBlockChainRetweetBlockChain
2BlockChain:xyz Retweet:abc BlockChain:adcxyzabcadc
Sheet1
Cell Formulas
RangeFormula
B2B2=MID(A2,SEARCH(":",A2)+1,3)
C2C2=MID(A2,SEARCH(":",A2)+1+SEARCH(":",A2,SEARCH(":",A2))+1,3)
D2D2=MID(A2,SEARCH(":",A2,SEARCH(":",A2)+1+SEARCH(":",A2,SEARCH(":",A2))+1)+1,3)
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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