Jump to content

Recommended Posts

Ok so i got an excell spreadsheet that contains data like so ...

 

Part No.    Vendor      Color    Width    Height    Depth              <-- This is the header of the xls. spreadsheet

12345        ABC        RED      24"        40"          24"

23456        ABC        BLUE    11"        22"        11"

33461        ABC        Green    12"        55"        21"

 

 

etc....

 

Whats the best way to read through this spreadsheet, and then reshuffle the info to look like this ...

and place it back into a new spreadsheet

 

12345    ABC    COLOR    RED

12345    ABC    WIDTH    24"

12345    ABC    HEIGH      40"

12345    ABC    DEPTH      24"

 

23456    ABC    COLOR    RED

23456    ABC    WIDTH    11"

23456    ABC    HEIGH      22"

23456    ABC    DEPTH      11"

 

etc....

 

Should i somehow do a multidimentional array ..

12345 => (Vendor => ABC) (Color => RED) (WIDTH=>24") etc ...

i think more or less that what that would look like ..

 

or does anyone have a better method of doing this ...

 

Link to comment
https://forums.phpfreaks.com/topic/74613-need-some-help-with-the-logic-methods/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.