Fin Min value from column header criteria

cshetty

Board Regular
Joined
Apr 15, 2017
Messages
76
Office Version
  1. 2016
Platform
  1. Windows
Dear All

I have a data layout like below.

Cell A1, C1, E1, G1....... coloumn header "UNIT"
Cell B1,D1,F1,H1 ...... Column Header "Amount"

Data starts from A2

in Cell S2 I want the minimum unit value for the range A2:R2


Help me to find the minimum unit value, ignoring the Amount column.



.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi, try this:
Book4
ABCDEFGHIJKLMNOPQRS
1UnitAmountUnitAmount
210140410
320250520
430360630
Sheet1
Cell Formulas
RangeFormula
S2:S4S2=AGGREGATE(15,6,A2:R2/($A$1:$R$1="Unit"),1)
 
Upvote 0
Solution
Hi, try this:
Book4
ABCDEFGHIJKLMNOPQRS
1UnitAmountUnitAmount
210140410
320250520
430360630
Sheet1
Cell Formulas
RangeFormula
S2:S4S2=AGGREGATE(15,6,A2:R2/($A$1:$R$1="Unit"),1)
Thank you Sir..

Wanted to ignore if the Unit Value is Zero. So tweaked your formula to =AGGREGATE (15,6, A2:R2/ (($A$1: $R$1="Unit") *(A2:R2>0)),1)
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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