how to extract a value from a string?

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
840
Office Version
  1. 2013
Platform
  1. Windows
I have a number of cells which have formulas like this:
=IF(AE344=AH344,"1","2")
Lets assume thats in AE500.


Next to this I want to write a formula that tells me the value in this cell. So for example next to the 1 or 2 above, in the adjacent cell, I want to write a formula that will give me the value in AE344.


This gets complicated though because I cant drag the formulas downwards for reason too complex to explain. So ideally I'd write a formula in AF500, which would look at AE500, look at the text in the spaces of 5-9 (which is AE344) and give me the value.


Is this possible?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I have a number of cells which have formulas like this:
=IF(AE344=AH344,"1","2")
Lets assume thats in AE500.


Next to this I want to write a formula that tells me the value in this cell. So for example next to the 1 or 2 above, in the adjacent cell, I want to write a formula that will give me the value in AE344.


This gets complicated though because I cant drag the formulas downwards for reason too complex to explain. So ideally I'd write a formula in AF500, which would look at AE500, look at the text in the spaces of 5-9 (which is AE344) and give me the value.


Is this possible?
Bigdan,

Following your example, are you wanting to enter "AE344" in Cell AF500 or the value found in cell AE344? Either way I can build you a quick solution. Let me know.
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,941
Members
448,534
Latest member
benefuexx

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