Got a string of data in a cell and wanting to pull some data out of it

Jaffabfc

Board Regular
Joined
Jul 5, 2013
Messages
230
Office Version
  1. 365
Platform
  1. Windows
Hi,

So in cell G2 i have a string of data and i am wanting to pull bits out of it.
The cell shows
"{"options": [{ "name" : "size", "value" : ""},{ "name" : "ruling", "value" : ""},{ "name" : "colour", "value" : "Blue"},{ "name" : "pages", "value" : ""},{ "name" : "packsize", "value" : ""},{ "name" : "personalisation", "value" : ""}]}"

And in J1 i have Size in K1 i have Ruling L1 Colour etc etc.
in J2/K2/L2 i would want the value that is showing above as "" for when i drag the formulas down

So if the size in the string above had the value of 123 instead of "" i would want it to show in cell K2 123.

i havent a clue where to start with this one can someone help

thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
i put this in H2 and have the sheet looking exactly how it is above and i copy the formula and it brings up #N/A
Your string is probably different than what you posted above. Can you show exactly what's on the sheet?
 
Upvote 0
That is correct right? Showing up the value
 
Upvote 0
1721220294060.png

this is what it is showing
 
Upvote 0
i am wanting it for colour for example to show blue
My formula didn't work because your header capitalization needs to match what's in the string. Try:
Excel Formula:
=TRIM(TEXTBEFORE(TEXTAFTER(SUBSTITUTE($G2,CHAR(34),""),LOWER(H$1)&", value :"),"}"))
 
Upvote 0
My formula didn't work because your header capitalization needs to match what's in the string. Try:
Excel Formula:
=TRIM(TEXTBEFORE(TEXTAFTER(SUBSTITUTE($G2,CHAR(34),""),LOWER(H$1)&", value :"),"}"))
Brilliant, i forgot i had changed a column to help the other suggestion and not changed it back.

Thats worked thanks
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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