Anyone can suggest a faster way to do this?

edlim85

Board Regular
Joined
May 4, 2009
Messages
178
I have a long list of raw data that i have to prepare into a specific format for a very old machine to read.

I will try my best to explain clearly here. below is one of the sample table, i have about 600 of such tables. i will need to arrange the raw data(image1) into another format below (image2). The tedious part here is some tags(yellow column) have different corresponding coefficient be it coefficient 1, 2, or 3.


image1:
5937560304_e2ea2894bd_z.jpg


if the coefficient is the same i will not need to repeat.

image2:

5937002319_b2331a0f9f.jpg



can anyone help?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
edlim85,

You are posting a picture(s). This means that if this was a problem where one needed to use your data, anyone trying to help you would have to enter the data manually. That makes no sense and I doubt that you would get any answer.


What version of Excel are you using?

You will generally get much more help (and faster) in this forum if you can post your small samples (what you have and what you expect to achieve) directly in the forum.

To attach screenshots, see below in my Signature block: Post a screen shot with one of these:

If you are not able to give us screenshots, see below in my Signature block: You can upload your workbook to Box Net, and provide us with a link to your workbook.
 
Upvote 0
edlim85,

Thanks for the workbook.

Are we making a new worksheet for each table?

Can I have another workbook with more than just one table (say 10)?

And, can the data be displayed as it actually exists.
 
Last edited:
Upvote 0
hi Hiker95,

I have uploaded another file on to boxnet.
http://www.box.net/shared/ri6bhq0hkn5zzf3yxpu9

Both ways are possible (new worksheet or to dump all in one worksheet). The tags differs from table to table(tu572, tu845 etc) and each tag needs to be coupled by the coefficients.
And, can the data be displayed as it actually exists.
Do you mean the formatting on the original worksheet?
 
Upvote 0
edlim85,

Can you supply another workbook, with the results from the Original worksheet for the entire range A4:J14 in worksheet TU572.
 
Upvote 0
edlim85,


Sample raw data in worksheet Sheet1 (only showing 39 out of the 181 rows):


Excel Workbook
ABCDEFGHIJ
1TablesFromToTagCoefficient 1coefficient 2coefficient 3Coefficient 4Coefficient 5Coefficient 6
2TU5642008020120080301HRSE11.05NANANANANA
32008020120080301HRSE21.00NANANANANA
4TU5722008020120080301A0.00000.00000.00001.05001.05001.0500
52008020120080301B0.00000.00000.00001.13401.13401.1340
62008020120080301C0.00000.00000.00001.30981.30981.3098
72008020120080301D0.00000.00000.00001.21551.10251.2155
82008020120080301E0.00000.00000.00001.33651.06731.3365
92008020120080301F0.00000.00000.00001.20521.03001.1585
102008020120080301G0.00000.00000.00001.00001.00001.0000
112008020120080301H0.00000.00000.00001.61571.61571.6157
122008020120080301I0.00000.00000.00001.13401.13401.1340
132008020120080301J0.00000.00000.00001.23591.15561.2359
142008020120080301K0.00000.00000.00001.32561.32561.3256
15TU57520080201200803010 - 0.80.00000.00000.00001.17831.01651.0165
1620080201200803010.81 - 10.00000.00000.00001.36471.13221.1655
1720080201200803011.01 - 1.20.00000.00000.00001.60421.34401.3709
1820080201200803011.21 - 1.50.00000.00000.00001.55681.37001.3974
1920080201200803011.51 - 20.00000.00000.00001.57541.44201.4420
2020080201200803012.01 - 2.50.00000.00000.00001.83431.59861.5986
2120080201200803012.51 - 30.00000.00000.00002.09181.82311.8231
2220080201200803013.01 - 50.00000.00000.00002.10882.07002.0700
2320080201200803015.01 - 7.50.00000.00000.00002.37602.37602.3760
2420080201200803017.51 - 100.00000.00000.00002.62202.62202.6220
25200802012008030110.01 - 150.00000.00000.00003.20793.20793.2079
26200802012008030115.01 - 200.00000.00000.00004.20004.20004.2000
27200802012008030120.01 - 300.00000.00000.00004.90004.90004.9000
28200802012008030130.01 - 400.00000.00000.00005.70005.70005.7000
29200802012008030140.01 - 500.00000.00000.00006.50006.50006.5000
30200802012008030150.01 - 600.00000.00000.00007.06007.06007.0600
31200802012008030160.01 - 700.00000.00000.00007.24007.24007.2400
32200802012008030170.01 - 800.00000.00000.00007.42007.42007.4200
33200802012008030180.01 - 900.00000.00000.00007.60007.60007.6000
34200802012008030190.01 - 1000.00000.00000.00007.79007.79007.7900
352008020120080301100.01 - 1100.00000.00000.00007.99007.99007.9900
362008020120080301110.01 - 1200.00000.00000.00008.19008.19008.1900
372008020120080301120.01 - 1300.00000.00000.00008.39008.39008.3900
382008020120080301130.01 - 1400.00000.00000.00008.60008.60008.6000
392008020120080301140.01 - 1500.00000.00000.00008.82008.82008.8200
Sheet1





After the macro in a new worksheet Results (only showing thru column N. The last column is column HR):


Excel Workbook
ABCDEFGHIJKLMN
1FromToTagCoefficientTagCoefficientTagCoefficientTagCoefficientTagCoefficientTagCoefficient
22008020120080301HRSE11.05HRSE21
32008020120080301A1.05B1.134C1.3098D1.2155D1.1025E1.3365
420080201200803010 - 0.81.17830 - 0.81.01650.81 - 11.36470.81 - 11.13220.81 - 11.16551.01 - 1.21.6042
52008020120080301V1622.93V1901.7V1125.48V1110.86V1476.33V195.66
62008020120080301351.0551351.06351.1361.1079361.06361.1
72008030220080401HRSE11.05HRSE21
82008030220080401A1.05B1.134C1.3098D1.2155D1.1025E1.3365
920080302200804010 - 0.81.17830 - 0.81.01650.81 - 11.36470.81 - 11.13220.81 - 11.16551.01 - 1.21.6042
102008030220080401V1622.93V1901.7V1125.48V1110.86V1476.33V195.66
112008030220080401351.0551351.06351.1361.1079361.06361.1
12
Results





Is this what you are looing for in one worksheet Results?


Or, do you alwo want to display the NA's and zero's (only 1 if there are more in columns E thru J)?
 
Upvote 0
edlim85,


Reference the BOLD row 7:


Excel Workbook
ABCDEFGHIJ
1TablesFromToTagCoefficient 1coefficient 2coefficient 3Coefficient 4Coefficient 5Coefficient 6
2TU5642008020120080301HRSE11.05NANANANANA
32008020120080301HRSE21.00NANANANANA
4TU5722008020120080301A0.00000.00000.00001.05001.05001.0500
52008020120080301B0.00000.00000.00001.13401.13401.1340
62008020120080301C0.00000.00000.00001.30981.30981.3098
72008020120080301D0.00000.00000.00001.21551.10251.2155
Sheet1





There are two unique numbers in row 7, columns E thru J, which will produce in Results, this :


Excel Workbook
ABCDEFGHIJKLMNOP
1FromToTagCoefficientTagCoefficientTagCoefficientTagCoefficientTagCoefficientTagCoefficientTagCoefficient
22008020120080301HRSE11.05HRSE21
32008020120080301A1.05B1.134C1.3098D1.2155D1.1025E1.3365E1.0673
Results





Is the above screenshot correct?
 
Upvote 0
Hi Hiker95,

Whoa! thanks. this is great.!!! this is very close to what i need. the final table will compile the data by dates in row.

example
TU564
Row 2-2008020120080301
Row 3-2008030220080401

but this will work great. i would not have survive by copy and paste individual tags with each coefficient.

could you explain how did you do it?
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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