Converting data

jo83

New Member
Joined
Mar 24, 2013
Messages
15
Hello.

I hope that you are able to help me with my problem. I have have the following data:

A
B
C
D
1
Date: 12/01/20123
2
Poscode: 2200
3
4
Unique ID
Risk
Relevance
5
AKFD
H
Mapping
5
6
AFEJ
L
Connection
6
7
FHFB
H
Connection
7
8
9
Date: 14/01/20123
10
Poscode: 2200
11
12
Unique ID
Risk
Relevance
13
DHWJ
H
Connection
13
14
DJEU
L
Connection
14
15
DHEY
L
Mapping
15

<tbody>
</tbody>

The D column is based on the following formula: =IF(LEFT(C1;2)=LEFT($D$11;2);ROW(O1);"")

I would like Excel to scan the sheet and create the following table:

E
F
G
1
Unique ID
Risk
Relevance
2
AKFD
H
Mapping
3
AFEJ
L
Connection
4
FHFB
H
Connection
5
DHWJ
H
Connection
6
DJEU
L
Connection
7
DHEY
L
Mapping

<tbody>
</tbody>


What type of formula should i use in cell E2 so it would jump directly to the second table and disptey the needed data?

Thank you very much!!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi and welcome to MrExcel.

The following is based on the assumption that the UniqueID is the ONLY data in column A that is 4 characters in length.
IF there are ANY other cells that contain data with 4 characters, then this solution will fail and I DON'T have a solution for that, sorry.

Excel Workbook
ABCDEFGH
1Date: 12/01/2012**6Unique IDRiskRelevance*
2Poscode: 2200***AKFDHMapping*
3****AFEJLConnection*
4Unique IDRiskRelevance*FHFBHConnection*
5AKFDHMapping5DHWJHConnection*
6AFEJLConnection6DJEULConnection*
7FHFBHConnection7DHEYLMapping*
8********
9Date: 14/01/2012*******
10Poscode: 2200*******
11********
12Unique IDRiskRelevance*****
13DHWJHConnection13****
14DJEULConnection14****
15DHEYLMapping15****
16********
Sheet14


The formula in E2 needs entering with ctrl shift enter NOT just enter, it can then be copied down.
The formula in F2 needs to be copied across and down.

ALL formulas will need to have the cell ranges changed to suit your layout.

I hope that helps.

Good luck.

Ak
 
Upvote 0
Thank you so much for the quick response :).
The problem is that it is not. But does it help that the Unique ID always start with exactly the same 4 characters? For example:
JATJ-563.01-R
JATJ-652.02-R
JATJ-646.02-R
 
Upvote 0
Hi,

It's always best to give the correct information when asking a question!! :)

Does this work for you?......

Excel Workbook
ABCDEFGH
1Date: 12/01/2012JATJ6Unique IDRiskRelevance
2Poscode: 2200JATJ-563.01-RHMapping
3JATJ-652.02-RLConnection
4Unique IDRiskRelevanceJATJ-646.02-RHConnection
5JATJ-563.01-RHMapping5JATJ-563.01-THConnection
6JATJ-652.02-RLConnection6JATJ-652.02-TLConnection
7JATJ-646.02-RHConnection7JATJ-646.02-TLMapping
8
9Date: 14/01/2012
10Poscode: 2200
11
12Unique IDRiskRelevance
13JATJ-563.01-THConnection13
14JATJ-652.02-TLConnection14
15JATJ-646.02-TLMapping15
16
Sheet14


The formula in E2 needs entering with ctrl shift enter NOT just enter, it can then be copied down.
The formula in F2 needs to be copied across and down.

ALL formulas will need to have the cell ranges changed to suit your layout.

I hope that helps.

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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