Fill the column State_name in the worksheet Consumer_Complaints with the data from the State_Code_Name worksheet

SHIVANISHARMA1711

New Member
Joined
May 16, 2024
Messages
4
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
SrcSTATECODE
{ "STATE": "Alabama", "CODE": "AL"}AlabamaAL
{ "STATE": "Alaska", "CODE": "AK"}AlaskaAK
{ "STATE": "Arizona", "CODE": "AZ"}ArizonaAZ
{ "STATE": "Arkansas", "CODE": "AR"}ArkansasAR
{ "STATE": "California", "CODE": "CA"}CaliforniaCA
{ "STATE": "Colorado", "CODE": "CO"}ColoradoCO
{ "STATE": "Connecticut", "CODE": "CT"}ConnecticutCT
{ "STATE": "Delaware", "CODE": "DE"}DelawareDE
{ "STATE": "District of Columbia", "CODE": "DC"}District of ColumbiaDC
{ "STATE": "Florida", "CODE": "FL"}FloridaFL
{ "STATE": "Georgia", "CODE": "GA"}GeorgiaGA
{ "STATE": "Hawaii", "CODE": "HI"}HawaiiHI
{ "STATE": "Idaho", "CODE": "ID"}IdahoID
{ "STATE": "Illinois", "CODE": "IL"}IllinoisIL
{ "STATE": "Indiana", "CODE": "IN"}IndianaIN
{ "STATE": "Iowa", "CODE": "IA"}IowaIA
{ "STATE": "Kansas", "CODE": "KS"}KansasKS
{ "STATE": "Kentucky", "CODE": "KY"}KentuckyKY
{ "STATE": "Louisiana", "CODE": "LA"}LouisianaLA
{ "STATE": "Maine", "CODE": "ME"}MaineME
{ "STATE": "Montana", "CODE": "MT"}MontanaMT
{ "STATE": "Nebraska", "CODE": "NE"}NebraskaNE
{ "STATE": "Nevada", "CODE": "NV"}NevadaNV
{ "STATE": "New Hampshire", "CODE": "NH"}New HampshireNH
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hello, and what exactly is the goal here? To split those text strings (e.g. { "STATE": "Alabama", "CODE": "AL"}) via formula into columns STATE and CODE or something else?
 
Upvote 0
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABC
1
2{ "STATE": "Alabama", "CODE": "AL"}AlabamaAL
3{ "STATE": "Alaska", "CODE": "AK"}AlaskaAK
4{ "STATE": "Arizona", "CODE": "AZ"}ArizonaAZ
5{ "STATE": "Arkansas", "CODE": "AR"}ArkansasAR
6{ "STATE": "California", "CODE": "CA"}CaliforniaCA
7{ "STATE": "Colorado", "CODE": "CO"}ColoradoCO
8{ "STATE": "Connecticut", "CODE": "CT"}ConnecticutCT
9{ "STATE": "Delaware", "CODE": "DE"}DelawareDE
10{ "STATE": "District of Columbia", "CODE": "DC"}District of ColumbiaDC
11{ "STATE": "Florida", "CODE": "FL"}FloridaFL
12{ "STATE": "Georgia", "CODE": "GA"}GeorgiaGA
13{ "STATE": "Hawaii", "CODE": "HI"}HawaiiHI
14{ "STATE": "Idaho", "CODE": "ID"}IdahoID
15{ "STATE": "Illinois", "CODE": "IL"}IllinoisIL
16{ "STATE": "Indiana", "CODE": "IN"}IndianaIN
17{ "STATE": "Iowa", "CODE": "IA"}IowaIA
18{ "STATE": "Kansas", "CODE": "KS"}KansasKS
19{ "STATE": "Kentucky", "CODE": "KY"}KentuckyKY
20{ "STATE": "Louisiana", "CODE": "LA"}LouisianaLA
21{ "STATE": "Maine", "CODE": "ME"}MaineME
22{ "STATE": "Montana", "CODE": "MT"}MontanaMT
23{ "STATE": "Nebraska", "CODE": "NE"}NebraskaNE
24{ "STATE": "Nevada", "CODE": "NV"}NevadaNV
25{ "STATE": "New Hampshire", "CODE": "NH"}New HampshireNH
Data
Cell Formulas
RangeFormula
B2:C25B2=CHOOSECOLS(TEXTSPLIT(A2,""""),4,8)
Dynamic array formulas.
 
Upvote 0
I HAVE THESE COUNTRY NAME AND CODE IN ONE SHEET AND I HAVE TO TRANSFER THESE NAME OF COUNTRIES IN ANOTHER WORKSHEET WHICH HAVE CODE OF COUNTRY. SO BASICALLY I HAVE TO TRANSFER NAME OF COUNTRY MATCHES WITH COUNTRY CODE.
 
Upvote 0
Please do not post in capitals, it is considered to be shouting & therefore rude.

Can you post a sample of the output sheet with expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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