Find and Return the Lowest Cost

tlrelford

New Member
Joined
Sep 12, 2022
Messages
4
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I really need help. I have been trying to figure this out for weeks now. I have a spreadsheet that has UPC numbers and multiple costs with dates. I aim to return the lowest promo price and dates for the Chain Item#.
 

Attachments

  • Screenshot 2022-09-12 151910.png
    Screenshot 2022-09-12 151910.png
    72.1 KB · Views: 7
  • Screenshot 2022-09-12 151930.png
    Screenshot 2022-09-12 151930.png
    97.3 KB · Views: 7

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I'm not sure that I understand you - and I had no use for the UPC number. I just linked up the chain number:

MrExcelPlayground11.xlsx
ABCDEFGHIJKLM
1Best Promo Price and Date RangeChain Item#Promo PriceStart DateEnd Date
2Chain Item#DescriptionSizePackPromo PriceStart DateEnd Date1$15.2010/1/202110/8/2021
31A750ml12$15.2010/1/202110/8/20212$16.5010/1/202110/8/2021
42B750ml12$16.5010/1/202110/8/20213$17.8011/1/202111/8/2021
53C750ml12$17.8011/1/202111/8/20214$19.1012/2/202112/9/2021
64D750ml12$19.1012/2/202112/9/20215$20.401/2/20221/9/2022
75E750ml6$20.401/2/20221/9/20226$21.701/2/20221/9/2022
86F750ml6$21.701/2/20221/9/20227$23.001/2/20221/9/2022
97G750ml12$23.001/2/20221/9/20228$24.301/2/20221/9/2022
108H750ml6$24.301/2/20221/9/20229$25.602/2/20222/9/2022
119I750ml6$25.602/2/20222/9/202210$26.902/2/20222/9/2022
1210J750ml6$26.902/2/20222/9/202211$28.202/2/20222/9/2022
1312$29.503/5/20223/12/2022
143$30.804/5/20224/12/2022
154$32.105/6/20225/13/2022
165$33.406/6/20226/13/2022
Sheet26
Cell Formulas
RangeFormula
E3:G12E3=INDEX(SORT(FILTER($K$2:$M$16,$J$2:$J$16=A3),1),1,)
Dynamic array formulas.
 
Upvote 0
I'm not sure that I understand you - and I had no use for the UPC number. I just linked up the chain number:

MrExcelPlayground11.xlsx
ABCDEFGHIJKLM
1Best Promo Price and Date RangeChain Item#Promo PriceStart DateEnd Date
2Chain Item#DescriptionSizePackPromo PriceStart DateEnd Date1$15.2010/1/202110/8/2021
31A750ml12$15.2010/1/202110/8/20212$16.5010/1/202110/8/2021
42B750ml12$16.5010/1/202110/8/20213$17.8011/1/202111/8/2021
53C750ml12$17.8011/1/202111/8/20214$19.1012/2/202112/9/2021
64D750ml12$19.1012/2/202112/9/20215$20.401/2/20221/9/2022
75E750ml6$20.401/2/20221/9/20226$21.701/2/20221/9/2022
86F750ml6$21.701/2/20221/9/20227$23.001/2/20221/9/2022
97G750ml12$23.001/2/20221/9/20228$24.301/2/20221/9/2022
108H750ml6$24.301/2/20221/9/20229$25.602/2/20222/9/2022
119I750ml6$25.602/2/20222/9/202210$26.902/2/20222/9/2022
1210J750ml6$26.902/2/20222/9/202211$28.202/2/20222/9/2022
1312$29.503/5/20223/12/2022
143$30.804/5/20224/12/2022
154$32.105/6/20225/13/2022
165$33.406/6/20226/13/2022
Sheet26
Cell Formulas
RangeFormula
E3:G12E3=INDEX(SORT(FILTER($K$2:$M$16,$J$2:$J$16=A3),1),1,)
Dynamic array formulas.
Thank you so much for responding. Which Excel are you using? I am receiving a #CALC! error.
 
Upvote 0
I made up a data set that will work the way I think. Maybe your dataset is different from mine. I didn't notice any actual matches in your samples.
 
Upvote 0
I made up a data set that will work the way I think. Maybe your dataset is different from mine. I didn't notice any actual matches in your samples.
I am using the same thing. I have about 741 rows of data. When I look at what you posted, I see the formula for Column E, but not for columns F & G.
 
Upvote 0
E spills into F&G.
E filters the whole table in K-M. And would show the whole thing if J=A. But then it sorts it by the smallest price on top, then the INDEX takes the first row of that sorted filtered array.

You would get a CALC error if it doesn't find any matches of J and A.
 
Upvote 0
E spills into F&G.
E filters the whole table in K-M. And would show the whole thing if J=A. But then it sorts it by the smallest price on top, then the INDEX takes the first row of that sorted filtered array.

You would get a CALC error if it doesn't find any matches of J and A.
Ok got it. Thank you so much for your help. You just don't know how many hours of work you have saved me. I really appreciate you. Have a wonderful day.
 
Upvote 0

Forum statistics

Threads
1,215,757
Messages
6,126,695
Members
449,331
Latest member
smckenzie2016

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