I want cell D5 to be the minimum value of cells D29:T29. Some of the cells will have no value (or $0.00) and some will have values in them. I tried the following formula in cell D5 but it doesn't work: =IF(D29:T29>0,MIN(D29:T29))).
Thanks
I want cell D5 to be the minimum value of cells D29:T29. Some of the cells will have no value (or $0.00) and some will have values in them. I tried the following formula in cell D5 but it doesn't work: =IF(D29:T29>0,MIN(D29:T29))).
Thanks
Last edited by Edward C; 07-23-2009 at 09:13 AM. Reason: Solved....thank you very much
I want cell D5 to show the minimum value of cells D29:T29. Some of the cells in D29 to T29 will have $0.00 values and others will have values. I tried the following formula and it gives me a $0.00 value in cell D5:
=IF(D29:T29>0,MIN(D29:T29)))
try
=MIN(IF(D29:T29>0,D29:T29))
try
=MIN(IF(D29:T29>0,D29:T29))
Or =MIN(IF(D29:T29=0,"",D29:T29))
Threads merged.
Edward, please read the forum rules before posting again, including both duplicate posts and thread titles (which I have edited)
Last edited by shg; 07-22-2009 at 11:47 PM.
Entia non sunt multiplicanda sine necessitate
I'm attaching a spreadsheet for illustration. I want the vendor associated with the lowest cost to appear in cell A3. I created a short list at the bottom for possibly a vlookup but I don't know if it will work.
Per your file:
A3: =INDEX($C$6:$K$6,MATCH($E$3,$D$27:$K$27,0))
Do not use Merged Cells -- for Horizontal ranges you can use "Centre Across Selection" to get the same effect without any of the associated headaches.
On an aside the SMALL(...,COUNTIF()+1) approach is certainly one I would opt for in preference to a MIN array regardless of Merged Cells issues.
Last edited by DonkeyOte; 07-23-2009 at 03:42 AM. Reason: typo in narrative
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
=MIN(IF(D29:T29>0, D29:T29) )
The formula must be confirmed wit Ctrl+Shift+Enter rather than just Enter.
Sorry guys, I wasn't sure if I posted it in the correct thread. I'm kinda new at this. I did get the following formula to work though: =SMALL(D29:T29,COUNTIF($D$29:$T$29,0)+1). I tried the one you suggested but since I have merged cells, it won't allow an array formula. Now I have a different problem. I'm not quite sure how to explain it so I'll try to put together an illustration and put it in my next reply. Hope someone can help with it. I'm not sure if it can be accomplished. I appreciate your help so far though.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks