Display the header of the column containing the cell with the lowest value, exclude 0

ScoobyBear

New Member
Joined
May 7, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to get a cell do display the header of the column containing the cell with the lowest value but exclude 0-values and negative numbers . I'm struggling with the exclude part. I've come this far:
=INDEX(B1:F1;0,MATCH(MIN(B4:F4),B4:F4,0))
But that include cells with zeros which is useless to me.
So how do I do it!?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Book1
BCDEF
1H1H2H3H4H5
2H3
3
4703-15
Sheet1
Cell Formulas
RangeFormula
B2B2= INDEX( B1:F1, 0, MATCH( MINIFS(B4:F4, B4:F4, ">0"), B4:F4, 0 ) )
 
Upvote 0
Welcome to the MrExcel board!

If there will only be one column with that low value above zero (or no columns) then you might try the formula in F4:F5 below.
If there could be two or more columns with equal low value >0 then perhaps the formula in F7:F9

23 05 08.xlsm
ABCDEF
1H1H2H3H4H5
2
3
4703-15H3
5-2-2-2-2-2 
6
7703-13H3, H5
8703-15H3
9-2-2-2-2-2 
Header(s)
Cell Formulas
RangeFormula
F4:F5F4=IFNA(INDEX(A$1:E$1,MATCH(MINIFS(A4:E4,A4:E4,">0"),A4:E4,0)),"")
F7:F9F7=LET(rw,A7:E7,TEXTJOIN(", ",1,FILTER(A$1:E$1,(rw=MINIFS(rw,rw,">0")),"")))
 
Upvote 0
You guys know your stuff! All three ways worked perfectly!

Thanks!

Btw, thanks for the welcome :)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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