Adjusting the layout of disparate data in excel

Atlas87

New Member
Joined
Jan 15, 2019
Messages
10
Not sure if that title is the snappiest way to label this query.

I have results from a questionnaire which are partly about jurisdictions of interest of businesses. As shown (poorly) below, they way they have been pulled in to excel makes it quite difficult to interact with them. The businesses appear in column one as the first entry in a row and then the rest of the row are the jurisdictions. I am especially interested in using the 3d maps feature here.

Is there a way/what is the best way to get this awkward layout of data into a place where i can interact with it more easily (pivot tables, 3d maps etc.) ???.

I tried using the go to BLANKS and deleting them but this messed with the data layout and attributed some answers to business who didnt give that answer etc.

There are too many rows to individually drag into the layer sections of 3d maps. I want 3d maps to recognise that i have a bunch of business who have each given a list of jurisdictions and be able to show this on the map and heatmap those which were mentioned most often.

Any light to be shed???

Thanks in advance!!
1spaingreeceiran
2americaindiaafghan
3franceitalyczech repspainindiaUK
4

<tbody>
</tbody>
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In your example:
1spaingreeceiran
2americaindiaafghan
3franceitalyczech repspainindiaUK

<tbody>
</tbody>

  1. Are Spain in row 1, and France in row 3 the "businesses" and the other countries in whatever cell the "jurisdictions"?
  2. If so, is an example of the problem you're trying to overcome the split of the jurisdictions for Spain over rows 1 & 2?
  3. How many possible jurisdictions are there per business (i.e. what's the max. No. of columns that would contain a value for each business)?

If the answers to 1 & 2 = Yes, and 3 = 5 (as per the data shown for France), try this formula-based solution to create a second "clean" table of your data that can be sorted to group the "-" businesses together, and then pivotted:

Spreadsheet
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]A[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]B[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]C[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]D[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]E[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]F[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]G[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]H[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]I[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]J[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]K[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]L[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]M[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]1[/COLOR]​
Data
Data
Data
Data
Data
Data
Formula
Formula
Formula
Formula
Formula
Formula
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]2[/COLOR]​
Business
Juris. 1
Juris. 2
Juris. 3
Juris. 4
Juris. 5
Business
Juris. 1
Juris. 2
Juris. 3
Juris. 4
Juris. 5
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]3[/COLOR]​
spain
greece
iran
spain​
greece​
iran​
america​
india​
afghan​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]4[/COLOR]​
america
india
afghan
-​
-​
-​
-​
-​
-​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]5[/COLOR]​
france
italy
czech rep
spain
india
UK
france​
italy​
czech rep​
spain​
india​
UK​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]6[/COLOR]​
america
spain
greece
iran
america​
spain​
greece​
iran​
UK​
india​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]7[/COLOR]​
UK
india
-​
-​
-​
-​
-​
-​

<tbody>
</tbody>

Formulas
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]H[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]I[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]J[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]K[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]L[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]M[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]1[/COLOR]​
Formula
Formula
Formula
Formula
Formula
Formula
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]2[/COLOR]​
Business
Juris. 1
Juris. 2
Juris. 3
Juris. 4
Juris. 5
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]3[/COLOR]​
= IF( NOT( ISBLANK( $A3 )), $A3, "-" )​
= IF( AND( $A3 <> "", B3 <> "" ), B3, IF( $A4 = "", IFERROR( INDEX( $B4:$F4, 1, COUNTIFS( $B3:B3, "") ), "-" ), "-" ) )​
= IF( AND( $A3 <> "", C3 <> "" ), C3, IF( $A4 = "", IFERROR( INDEX( $B4:$F4, 1, COUNTIFS( $B3:C3, "") ), "-" ), "-" ) )​
= IF( AND( $A3 <> "", D3 <> "" ), D3, IF( $A4 = "", IFERROR( INDEX( $B4:$F4, 1, COUNTIFS( $B3:D3, "") ), "-" ), "-" ) )​
= IF( AND( $A3 <> "", E3 <> "" ), E3, IF( $A4 = "", IFERROR( INDEX( $B4:$F4, 1, COUNTIFS( $B3:E3, "") ), "-" ), "-" ) )​
= IF( AND( $A3 <> "", F3 <> "" ), F3, IF( $A4 = "", IFERROR( INDEX( $B4:$F4, 1, COUNTIFS( $B3:F3, "") ), "-" ), "-" ) )​

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,209
Messages
6,129,513
Members
449,515
Latest member
lukaderanged

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