Matching two criteria, return third

Horskrzy

New Member
Joined
Nov 30, 2010
Messages
2
Short and sweet.

Our PO program prints out auto-generated POs (for filing and referral purposes only) that are a convoluted mess. There's repeated information and/or information that's not needed which results in a very hard to decipher printout. We have an option that will export it to a csv file so I'd like to set up a preformatted spreadsheet that will pull the data of the daily csv file (which will always have the same location and file name, it'll just be overwritten each day). If I can get this to work we'll have a clean, easy to read daily printout.

A simplified sample of data (without all of the "garbage info" columns):

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]PO[/TD]
[TD="align: center"]LINE[/TD]
[TD="align: center"]ITEM[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]83200[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]11111[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]83200[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]22222[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]83201[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]33333[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]83202[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]44444[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]84005[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]55555[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]84005[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]66666[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]84005[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]77777[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]84008[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]88888[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD="align: center"]84009[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]99999[/TD]
[/TR]
</tbody>[/TABLE]

What I need in a separate sheet:


  • Multiple "pages" that will identify the next PO number in the list (and place the PO number at the top right corner of the page) and based on that PO number, list all the PO line and item numbers related to the PO in rows below the PO number (up to 27 lines)
  • If the PO has more than 27 lines, the next "page" will recognize the additional lines and continue to list the remaining PO lines and item numbers.
  • If the PO has less than 27 lines, the remaining rows/formulas will be blank.
  • If the PO has less than 27 lines, the next "page" will show the next PO number.

Any suggestions?

Thanks,

Mark
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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