Problem with extracting data from text file to excel table

bigpappi23

New Member
Joined
Feb 1, 2013
Messages
38
Hi Guys,

I have a text file which consists of the following columns:

Code:
[TABLE="width: 320"]
<TBODY>[TR]
[TD]UPC CD</SPAN>
[/TD]
[TD]DESCRIPTION</SPAN>
[/TD]
[/TR]
[TR]
[TD]------</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15929</SPAN>
[/TD]
[TD] MX BERRY</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15929</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 10</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5322</SPAN>
[/TD]
[TD]GRAPE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5676</SPAN>
[/TD]
[TD] APPLE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5677</SPAN>
[/TD]
[TD] MMJTG ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5679</SPAN>
[/TD]
[TD] MMJTG MIX BERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5684</SPAN>
[/TD]
[TD]MMJTG APPLE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5685</SPAN>
[/TD]
[TD]MMJTG ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5685</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1D</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15070</SPAN>
[/TD]
[TD]STRAWBERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15072</SPAN>
[/TD]
[TD]ZERO MIX BERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15436</SPAN>
[/TD]
[TD]ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15437</SPAN>
[/TD]
[TD]LEM LIME PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15437</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1K</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14573</SPAN>
[/TD]
[TD]LEMON LIME PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14574</SPAN>
[/TD]
[TD]FRUIT PUNCH PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14575</SPAN>
[/TD]
[TD]BERRY BLAST PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14579</SPAN>
[/TD]
[TD]ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15034</SPAN>
[/TD]
[TD]STRWBRRY LEMONADE</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15456</SPAN>
[/TD]
[TD]WHITE CHERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15989</SPAN>
[/TD]
[TD]A MELON PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]16418</SPAN>
[/TD]
[TD]TROP MANGO PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]16418</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1L</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14565</SPAN>
[/TD]
[TD]BLAST - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14566</SPAN>
[/TD]
[TD]FRUIT PUNCH - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14713</SPAN>
[/TD]
[TD]PA GRAPE - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14714</SPAN>
[/TD]
[TD]PA ORANGE - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14714</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1Y</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5138</SPAN>
[/TD]
[TD]MXBER</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5138</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1Z</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]1868</SPAN>
[/TD]
[TD]BERRY BLD</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]1875</SPAN>
[/TD]
[TD] TROPICAL BLD</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]4888</SPAN>
[/TD]
[TD]FRUIT PUNCH</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]4891</SPAN>
[/TD]
[TD]STRWBRY PASSION</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5362</SPAN>
[/TD]
[TD] PINEAPPLE ORG</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
[TABLE="width: 320"]
<TBODY>[TR]
[TD]UPC CD</SPAN>
[/TD]
[TD]DESCRIPTION</SPAN>
[/TD]
[/TR]
[TR]
[TD]------</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15929</SPAN>
[/TD]
[TD] MX BERRY</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15929</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 10</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5322</SPAN>
[/TD]
[TD]GRAPE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5676</SPAN>
[/TD]
[TD] APPLE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5677</SPAN>
[/TD]
[TD] MMJTG ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5679</SPAN>
[/TD]
[TD] MMJTG MIX BERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5684</SPAN>
[/TD]
[TD]MMJTG APPLE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5685</SPAN>
[/TD]
[TD]MMJTG ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5685</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1D</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15070</SPAN>
[/TD]
[TD]STRAWBERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15072</SPAN>
[/TD]
[TD]ZERO MIX BERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15436</SPAN>
[/TD]
[TD]ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15437</SPAN>
[/TD]
[TD]LEM LIME PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15437</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1K</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14573</SPAN>
[/TD]
[TD]LEMON LIME PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14574</SPAN>
[/TD]
[TD]FRUIT PUNCH PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14575</SPAN>
[/TD]
[TD]BERRY BLAST PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14579</SPAN>
[/TD]
[TD]ORANGE PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15034</SPAN>
[/TD]
[TD]STRWBRRY LEMONADE</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15456</SPAN>
[/TD]
[TD]WHITE CHERRY PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]15989</SPAN>
[/TD]
[TD]A MELON PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]16418</SPAN>
[/TD]
[TD]TROP MANGO PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]16418</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1L</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14565</SPAN>
[/TD]
[TD]BLAST - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14566</SPAN>
[/TD]
[TD]FRUIT PUNCH - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14713</SPAN>
[/TD]
[TD]PA GRAPE - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14714</SPAN>
[/TD]
[TD]PA ORANGE - PET</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]14714</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1Y</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5138</SPAN>
[/TD]
[TD]MXBER</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5138</SPAN>
[/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MAJOR  BRAND: 1Z</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]------------------------------</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]1868</SPAN>
[/TD]
[TD]BERRY BLD</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]1875</SPAN>
[/TD]
[TD] TROPICAL BLD</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]4888</SPAN>
[/TD]
[TD]FRUIT PUNCH</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]4891</SPAN>
[/TD]
[TD]STRWBRY PASSION</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5362</SPAN>
[/TD]
[TD] PINEAPPLE ORG</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]

then i will export the data into an excel table. I'm able to do that but my problem is exporting the Major Brand. Because i'm required to create another column and in that column will be the Major Brand column and each UPC code needs to have a major brand associated with it.

For example:
UPC Code 5322,5676,5677,5679,5684,5685 is under Major Brand: 1D. So the Major Brand column needs to be filled with 1D for each UPC code. (Hope i explained it clearly :D)

can you help me out on how to code this one? please provide the code.

thank you very much
 

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"
bigpappi23,

1. What version of Excel and Windows are you using?

2. Are you using a PC or a Mac?


You may want to check your screenshot - it contains two complete duplicate areas beginning with the following:


Excel 2007
AB
1UPC CDDESCRIPTION
2------------------------------------
315929MX BERRY
415929------------------------------
Sheet1



And, can we have a screenshot (manually formatted by you) for what the results should look like?
 
Last edited:
Upvote 0
Hi Hiker95,
I'm using a PC/MS Excel 2010 and the screenshot i provided is from a raw text file. I have already worked on removing the duplicates when the data inputs in excel.
here's the screenshot of what i wished it to look like in excel:

Code:
[TABLE="width: 624"]
<TBODY>[TR]
[TD]UPC[/TD]
[TD]Major Brand[/TD]
[TD]Description[/TD]
[TD]Cost per Unit[/TD]
[/TR]
[TR]
[TD]015929[/TD]
[TD]10[/TD]
[TD] BERRY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05322[/TD]
[TD]1D[/TD]
[TD] GRAPE PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]02945[/TD]
[TD]1D[/TD]
[TD] APPLE PET[/TD]
[TD]                         6.75[/TD]
[/TR]
[TR]
[TD]05677[/TD]
[TD]1D[/TD]
[TD] ORANGE PET[/TD]
[TD]                       10.43[/TD]
[/TR]
[TR]
[TD]06401[/TD]
[TD]1D[/TD]
[TD] MIX BERRY PET[/TD]
[TD]                         7.58[/TD]
[/TR]
[TR]
[TD]05684[/TD]
[TD]1D[/TD]
[TD] APPLE PET[/TD]
[TD]                         6.63[/TD]
[/TR]
[TR]
[TD]05685[/TD]
[TD]1D[/TD]
[TD] ORANGE PET[/TD]
[TD]                         6.63[/TD]
[/TR]
[TR]
[TD]015070[/TD]
[TD]1K[/TD]
[TD] STRAWBERRY PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]03935[/TD]
[TD]1K[/TD]
[TD] BERRY PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]015436[/TD]
[TD]1K[/TD]
[TD] ORANGE PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]015437[/TD]
[TD]1K[/TD]
[TD]LIME PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]014573[/TD]
[TD]1L[/TD]
[TD]LEMON LIME PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014574[/TD]
[TD]1L[/TD]
[TD] FRUIT PUNCH PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014575[/TD]
[TD]1L[/TD]
[TD] BERRY BLAST PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014579[/TD]
[TD]1L[/TD]
[TD] ORANGE PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]015034[/TD]
[TD]1L[/TD]
[TD] STRWBRRY LEMONADE[/TD]
[TD]                         5.37[/TD]
[/TR]
[TR]
[TD]015456[/TD]
[TD]1L[/TD]
[TD]WHITE CHERRY PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]015989[/TD]
[TD]1L[/TD]
[TD] MELON PET[/TD]
[TD]                         5.51[/TD]
[/TR]
[TR]
[TD]016418[/TD]
[TD]1L[/TD]
[TD]TROP MANGO PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]014565[/TD]
[TD]1Y[/TD]
[TD] BLAST - PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014566[/TD]
[TD]1Y[/TD]
[TD] PUNCH - PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014713[/TD]
[TD]1Y[/TD]
[TD] GRAPE - PET[/TD]
[TD]                         6.19[/TD]
[/TR]
[TR]
[TD]014714[/TD]
[TD]1Y[/TD]
[TD]ORANGE - PET[/TD]
[TD]                         6.48[/TD]
[/TR]
[TR]
[TD]05138[/TD]
[TD]1Z[/TD]
[TD].MXBER[/TD]
[TD]                              -  [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>[/TABLE]
[TABLE="width: 624"]
<TBODY>[TR]
[TD]UPC[/TD]
[TD]Major Brand[/TD]
[TD]Description[/TD]
[TD]Cost per Unit[/TD]
[/TR]
[TR]
[TD]015929[/TD]
[TD]10[/TD]
[TD] BERRY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05322[/TD]
[TD]1D[/TD]
[TD] GRAPE PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]02945[/TD]
[TD]1D[/TD]
[TD] APPLE PET[/TD]
[TD]                         6.75[/TD]
[/TR]
[TR]
[TD]05677[/TD]
[TD]1D[/TD]
[TD] ORANGE PET[/TD]
[TD]                       10.43[/TD]
[/TR]
[TR]
[TD]06401[/TD]
[TD]1D[/TD]
[TD] MIX BERRY PET[/TD]
[TD]                         7.58[/TD]
[/TR]
[TR]
[TD]05684[/TD]
[TD]1D[/TD]
[TD] APPLE PET[/TD]
[TD]                         6.63[/TD]
[/TR]
[TR]
[TD]05685[/TD]
[TD]1D[/TD]
[TD] ORANGE PET[/TD]
[TD]                         6.63[/TD]
[/TR]
[TR]
[TD]015070[/TD]
[TD]1K[/TD]
[TD] STRAWBERRY PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]03935[/TD]
[TD]1K[/TD]
[TD] BERRY PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]015436[/TD]
[TD]1K[/TD]
[TD] ORANGE PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]015437[/TD]
[TD]1K[/TD]
[TD]LIME PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]014573[/TD]
[TD]1L[/TD]
[TD]LEMON LIME PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014574[/TD]
[TD]1L[/TD]
[TD] FRUIT PUNCH PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014575[/TD]
[TD]1L[/TD]
[TD] BERRY BLAST PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014579[/TD]
[TD]1L[/TD]
[TD] ORANGE PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]015034[/TD]
[TD]1L[/TD]
[TD] STRWBRRY LEMONADE[/TD]
[TD]                         5.37[/TD]
[/TR]
[TR]
[TD]015456[/TD]
[TD]1L[/TD]
[TD]WHITE CHERRY PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]015989[/TD]
[TD]1L[/TD]
[TD] MELON PET[/TD]
[TD]                         5.51[/TD]
[/TR]
[TR]
[TD]016418[/TD]
[TD]1L[/TD]
[TD]TROP MANGO PET[/TD]
[TD]                         5.27[/TD]
[/TR]
[TR]
[TD]014565[/TD]
[TD]1Y[/TD]
[TD] BLAST - PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014566[/TD]
[TD]1Y[/TD]
[TD] PUNCH - PET[/TD]
[TD]                              -  [/TD]
[/TR]
[TR]
[TD]014713[/TD]
[TD]1Y[/TD]
[TD] GRAPE - PET[/TD]
[TD]                         6.19[/TD]
[/TR]
[TR]
[TD]014714[/TD]
[TD]1Y[/TD]
[TD]ORANGE - PET[/TD]
[TD]                         6.48[/TD]
[/TR]
[TR]
[TD]05138[/TD]
[TD]1Z[/TD]
[TD].MXBER[/TD]
[TD]                              -  [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>[/TABLE]
For example:

the UPC CD 15929 is under major brand 10. in the major brand column it will show 10 and for the UPC CD 5322 to 5685 it will show 1D in the major brand column.
 
Last edited:
Upvote 0
bigpappi23,

The text displays (wrapped inside CODE markers) you are showing do not give us a good idea where the data actually is in the worksheet cells, rows, and, columns.

I would like to have a screenshot of the raw data after you pull it into a worksheet.

And, I would like to have another screenshot of what the results (manually formatted by you) should look like.


To post small screen shots try one of the following:

Excel Jeanie
Download

MrExcel HTML Maker
https://onedrive.live.com/?cid=8cffdec0ce27e813&sc=documents&id=8CFFDEC0CE27E813!189

Borders-Copy-Paste
http://www.mrexcel.com/forum/about-board/444901-how-create-table-like-aladin.html#post2198045

To test the above:
Test Here


Or, you can upload your workbook to Box Net,
sensitive data changed
mark the workbook for sharing
and provide us with a link to your workbook.
 
Last edited:
Upvote 0
bigpappi23,

Thanks for the two workbooks.

We seem not be able to understand each other.


In my last reply I had asked for the following:

1. I would like to have a screenshot of the raw data after you pull it into a worksheet.

2. And, I would like to have another screenshot of what the results (manually formatted by you) should look like.


There is no correlation between the data in the following two screenshots?????

Where are the Major Brand's coming from?????


Excel 2007
ABCDE
10UPCDescriptionCost per Unit
11015929BERRY
1205322GRAPE PET-
1302945APPLE PET6.75
1405677ORANGE PET10.43
1506401MIX BERRY PET7.58
1605684APPLE PET6.63
1705685ORANGE PET6.63
18015070STRAWBERRY PET5.27
1903935MIX BERRY PET5.27
20015436ORANGE PET5.27
21015437LEM LIME PET5.27
22014573LEMON LIME PET-
23014574FRUIT PUNCH PET-
24014575BERRY BLAST PET-
25014579ORANGE PET-
26015034STRWBRRY LEMONADE5.37
27015456WHITE CHERRY PET5.27
28015989PA MELON PET5.51
29016418MANGO PET5.27
30014565MT BLAST - PET-
31014566FRUIT PUNCH - PET-
32014713GRAPE - PET6.19
33014714ORANGE - PET6.48
3405138MXBER-
35
Project



Excel 2007
ABCDE
10UPCMajor BrandDescriptionCost per Unit
1101592910BERRY
12053221DGRAPE PET-
13029451DAPPLE PET6.75
14056771DORANGE PET10.43
15064011DMIX BERRY PET7.58
16056841DAPPLE PET6.63
17056851DORANGE PET6.63
180150701KSTRAWBERRY PET5.27
19039351KMIX BERRY PET5.27
200154361KORANGE PET5.27
210154371KLEM LIME PET5.27
220145731LLEMON LIME PET-
230145741LFRUIT PUNCH PET-
240145751LBERRY BLAST PET-
250145791LORANGE PET-
260150341LSTRWBRRY LEMONADE5.37
270154561LWHITE CHERRY PET5.27
280159891LPA MELON PET5.51
290164181LMANGO PET5.27
300145651YMT BLAST - PET-
310145661YFRUIT PUNCH - PET-
320147131YGRAPE - PET6.19
330147141YORANGE - PET6.48
34051381ZMXBER-
35
Project_Results



Click on the Reply to Thread button, and just put the word BUMP in the thread. Then, click on the Post Quick Reply button, and someone else will assist you.
 
Upvote 0
BUMP

Hi hiker95,

My apologies

the raw data, which is the text file is in the first thread. That's the exact format of the text file where the raw data will be coming to be put into my excel table. In the last thread. the first screenshot is the one that i have made. I already been able to pull the data into my excel table. Now as for the expected result. I have added the " Major Brand" column. What i would like to happen is, I would like to extract the major brand in to the table column for each UPC associated with it. If you would kindly take a look at the text file and the expected output. the major brand only occurs below each associated UPC's and what i would like to happen is the major brand would be extracted for each UPC associated.


thank you so much
 
Upvote 0
bigpappi23,

Is the following what the raw data looks like after you bring it into the workbook?


Excel 2007
ABCD
1UPCMajor BrandDescriptionCost per Unit
21592910BERRY
353221DGRAPE PET-
429451DAPPLE PET6.75
556771DORANGE PET10.43
664011DMIX BERRY PET7.58
756841DAPPLE PET6.63
856851DORANGE PET6.63
9150701KSTRAWBERRY PET5.27
1039351KBERRY PET5.27
11154361KORANGE PET5.27
12154371KLIME PET5.27
13145731LLEMON LIME PET-
14145741LFRUIT PUNCH PET-
15145751LBERRY BLAST PET-
16145791LORANGE PET-
17150341LSTRWBRRY LEMONADE5.37
18154561LWHITE CHERRY PET5.27
19159891LMELON PET5.51
20164181LTROP MANGO PET5.27
21145651YBLAST - PET-
22145661YPUNCH - PET-
23147131YGRAPE - PET6.19
24147141YORANGE - PET6.48
2551381Z.MXBER-
26
Sheet1



If the above is correct, in reference to cells, rows, and, columns, then what is the worksheet name?
 
Upvote 0
nope, the one that you posted is my expected out put. the raw data comes from a text file(i.e notepad). then from that notepad file. i will extract the data that i needed to my excel table.
 
Upvote 0
bigpappi23,

Click on the Reply to Thread button, and just put the word BUMP in the thread. Then, click on the Post Quick Reply button, and someone else will assist you.
 
Upvote 0

Forum statistics

Threads
1,221,519
Messages
6,160,285
Members
451,635
Latest member
nithchun

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