I'm back!
I need a formula to scan a column and return the three most common values in that column along with information associated with them.
Here is the sample from which I will be pulling information:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Item[/TD]
[TD]Qty[/TD]
[TD]Description[/TD]
[TD]Price[/TD]
[TD]Reason[/TD]
[TD]Claim #[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]1[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]WIS[/TD]
[TD]1542[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]1[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]DMG[/TD]
[TD]1642[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]1[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]DMG[/TD]
[TD]8572[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]2[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]NBO[/TD]
[TD]3154[/TD]
[/TR]
[TR]
[TD]indJL019[/TD]
[TD]6[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]$145[/TD]
[TD]DNR[/TD]
[TD]2463[/TD]
[/TR]
[TR]
[TD]indJL019[/TD]
[TD]5[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]$145[/TD]
[TD]DNR[/TD]
[TD]7541[/TD]
[/TR]
[TR]
[TD]indJL019[/TD]
[TD]1[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]$145[/TD]
[TD]DMG[/TD]
[TD]5987[/TD]
[/TR]
[TR]
[TD]MM170596[/TD]
[TD]3[/TD]
[TD]Barnyard Stool[/TD]
[TD]$15[/TD]
[TD]NBO[/TD]
[TD]3154[/TD]
[/TR]
[TR]
[TD]MM170596[/TD]
[TD]7[/TD]
[TD]Barnyard Stool[/TD]
[TD]$15[/TD]
[TD]WIS[/TD]
[TD]6524[/TD]
[/TR]
[TR]
[TD]indH129[/TD]
[TD]3[/TD]
[TD]Table Leg Candle Stand[/TD]
[TD]$12[/TD]
[TD]DNR[/TD]
[TD]9764[/TD]
[/TR]
</tbody>[/TABLE]
I need it to:
Here is what the end result of the report would look like:
[TABLE="class: outer_border, width: 750"]
<tbody>[TR]
[TD]Amt[/TD]
[TD]Item[/TD]
[TD]Description[/TD]
[TD]Claim #'s[/TD]
[TD]Total Qt[/TD]
[TD]Reason[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]HEN020[/TD]
[TD]Selenite Flower Small[/TD]
[TD]1542, 1642, 8572, 3154[/TD]
[TD]5[/TD]
[TD]WIS, DMG, DMG, NBO[/TD]
[TD]$89[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]indJL019[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]2463, 7541, 5987[/TD]
[TD]12[/TD]
[TD]DNR, DNR, DMG[/TD]
[TD]$145[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]MM170596[/TD]
[TD]Barnyard Stool
[/TD]
[TD]3154, 6524[/TD]
[TD]10[/TD]
[TD]NBO, WIS[/TD]
[TD]$15[/TD]
[/TR]
</tbody>[/TABLE]
Thank you everyone for the help I've already received on this forum, it's helping me to learn and be more efficient at my job!
Thank you,
Heather
I need a formula to scan a column and return the three most common values in that column along with information associated with them.
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Item[/TD]
[TD]Qty[/TD]
[TD]Description[/TD]
[TD]Price[/TD]
[TD]Reason[/TD]
[TD]Claim #[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]1[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]WIS[/TD]
[TD]1542[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]1[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]DMG[/TD]
[TD]1642[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]1[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]DMG[/TD]
[TD]8572[/TD]
[/TR]
[TR]
[TD]HEN020[/TD]
[TD]2[/TD]
[TD]Selenite Flower Small[/TD]
[TD]$89[/TD]
[TD]NBO[/TD]
[TD]3154[/TD]
[/TR]
[TR]
[TD]indJL019[/TD]
[TD]6[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]$145[/TD]
[TD]DNR[/TD]
[TD]2463[/TD]
[/TR]
[TR]
[TD]indJL019[/TD]
[TD]5[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]$145[/TD]
[TD]DNR[/TD]
[TD]7541[/TD]
[/TR]
[TR]
[TD]indJL019[/TD]
[TD]1[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]$145[/TD]
[TD]DMG[/TD]
[TD]5987[/TD]
[/TR]
[TR]
[TD]MM170596[/TD]
[TD]3[/TD]
[TD]Barnyard Stool[/TD]
[TD]$15[/TD]
[TD]NBO[/TD]
[TD]3154[/TD]
[/TR]
[TR]
[TD]MM170596[/TD]
[TD]7[/TD]
[TD]Barnyard Stool[/TD]
[TD]$15[/TD]
[TD]WIS[/TD]
[TD]6524[/TD]
[/TR]
[TR]
[TD]indH129[/TD]
[TD]3[/TD]
[TD]Table Leg Candle Stand[/TD]
[TD]$12[/TD]
[TD]DNR[/TD]
[TD]9764[/TD]
[/TR]
</tbody>[/TABLE]
I need it to:
- tell me the total amount an item is on the list (Amt column)
- recognize which occurs most (HEN020), second most (indJL019), and third most (MM170596)
- return the total quantity of the items (HEN020 x5, indJL019 x12, MM170596 x10)
- each claim # associated (HEN020 would read "1542, 1642, 8572, 3154")
- return the reason for the claim of each LINE item (so for HEN020, it would read "WIS, DMG, DMG, NBO")
Here is what the end result of the report would look like:
[TABLE="class: outer_border, width: 750"]
<tbody>[TR]
[TD]Amt[/TD]
[TD]Item[/TD]
[TD]Description[/TD]
[TD]Claim #'s[/TD]
[TD]Total Qt[/TD]
[TD]Reason[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]HEN020[/TD]
[TD]Selenite Flower Small[/TD]
[TD]1542, 1642, 8572, 3154[/TD]
[TD]5[/TD]
[TD]WIS, DMG, DMG, NBO[/TD]
[TD]$89[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]indJL019[/TD]
[TD]Whip Stitch Stool, Brass[/TD]
[TD]2463, 7541, 5987[/TD]
[TD]12[/TD]
[TD]DNR, DNR, DMG[/TD]
[TD]$145[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]MM170596[/TD]
[TD]Barnyard Stool
[/TD]
[TD]3154, 6524[/TD]
[TD]10[/TD]
[TD]NBO, WIS[/TD]
[TD]$15[/TD]
[/TR]
</tbody>[/TABLE]
Thank you everyone for the help I've already received on this forum, it's helping me to learn and be more efficient at my job!
Thank you,
Heather