Unique values in columns depending on other columns

mbirchler

New Member
Joined
Apr 11, 2014
Messages
1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Invoice #
[/TD]
[TD]Order #
[/TD]
[TD]Customer #
[/TD]
[TD]Item #
[/TD]
[TD]Item QTY
[/TD]
[/TR]
[TR]
[TD]100001
[/TD]
[TD]1001
[/TD]
[TD]10
[/TD]
[TD]XB33
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]100335
[/TD]
[TD]1021
[/TD]
[TD]10
[/TD]
[TD]XB33
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]103009
[/TD]
[TD]1103
[/TD]
[TD]10
[/TD]
[TD]XB33
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]

Very small sample table. But let's say I wanted to add 2 columns to this.

The first one would be labeled: Reorder?
What I'm looking to accomplish with this is to signify that rows 2 and 3 are re-orders of an item first ordered in row 1 (my data has invoice dates ordered oldest to newest, as well as several hundred of rows in between each potential re-order). Anything can go into the field.. Y, 1, True, anything.

The next field would be labeled: Reorder Time
If it's a reorder then I would like it to calculate the time difference between the current row's Invoice date and the invoice date from the last data row order/reorder of that item.

HELP ;)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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