if condition with max

ravi2628

Board Regular
Joined
Dec 20, 2017
Messages
221
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi team,

good morning/afternoon/evening/night

i required a small output with following data.

Input

Book2
ABC
1ProductSellerPrice
2AppleDmart499
3AppleMetro366
4AppleReliance110
5AppleLocal Store197
6OrangeMetro497
7OrangeReliance166
8OrangeLocal Store495
9GrapesDmart158
10GrapesMetro134
11GrapesReliance138
12GrapesLocal Store449
Sheet1



Output

Book2
ABCD
1ProductSellerPricePrice Variant
2AppleDmart499Higest Price
3AppleMetro366Lowest Price
4AppleReliance110Lowest Price
5AppleLocal Store197Lowest Price
6OrangeMetro497Higest Price
7OrangeReliance166Lowest Price
8OrangeLocal Store495Lowest Price
9GrapesDmart158Lowest Price
10GrapesMetro134Lowest Price
11GrapesReliance138Lowest Price
12GrapesLocal Store449Higest Price
Sheet1


Please Check and help me out with the formula.

Regards,
Ravi
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
=IF(MAXIFS(C:C,A:A,A2)=C2,"Highest ", "Lowest ")&"Price"
Hi

as per my pervious data you answer worked but not i was having a issue in the data,please can you help with that

Book2
ABCDE
1ProductSellerPricePrice VariantVendor Segment
2AppleDmart499Higest PriceHigest
3AppleDmart346Lowest PriceHigest
4AppleDmart223Lowest PriceHigest
5AppleMetro366Lowest PriceLowest
6AppleReliance110Lowest PriceLowest
7AppleLocal Store197Lowest PriceLowest
8OrangeMetro497Higest PriceHigest
9OrangeReliance166Lowest PriceLowest
10OrangeLocal Store495Lowest PriceLowest
11GrapesDmart158Lowest PriceLowest
12GrapesMetro134Lowest PriceLowest
13GrapesReliance138Lowest PriceLowest
14GrapesLocal Store449Higest PriceHigest
Sheet1
 
Upvote 0
If each group of Product/Seller is sorted from highest price to lowest price like Apple/Dmart then perhaps this?

If this is not it can you
- Try to clarify further and
- Tell us whether this needs to work in both Excel 2019 and 365, or whether just 365 would be sufficient.

21 05 24.xlsm
ABCDE
1ProductSellerPricePrice VariantVendor Segment
2AppleDmart499Higest PriceHighest
3AppleDmart346Lowest PriceHighest
4AppleDmart223Lowest PriceHighest
5AppleMetro366Lowest PriceLowest
6AppleReliance110Lowest PriceLowest
7AppleLocal Store197Lowest PriceLowest
8OrangeMetro497Higest PriceHighest
9OrangeReliance166Lowest PriceLowest
10OrangeLocal Store495Lowest PriceLowest
11GrapesDmart158Lowest PriceLowest
12GrapesMetro134Lowest PriceLowest
13GrapesReliance138Lowest PriceLowest
14GrapesLocal Store449Higest PriceHighest
High Low
Cell Formulas
RangeFormula
E2:E14E2=IF(C2=MAXIFS(C$2:C$14,A$2:A$14,A2),"Highest",IF(AND(A2=A1,B2=B1),E1,"Lowest"))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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