ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I want to return "0" based on another cell (https://www.excelbanter.com/excel-worksheet-functions/13625-i-want-return-%220%22-based-another-cell.html)

CM

I want to return "0" based on another cell
 
I am using =min(a1:a10,b1:b10)to return the min number in two fields, however
i want the cell to remain blank or return "0" if another cell is blank or
zero. Can anbody help?

Bob Phillips

Do you mean

=IF(X1="","",MIN(A1:A10,B1:B10))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"CM" wrote in message
...
I am using =min(a1:a10,b1:b10)to return the min number in two fields,

however
i want the cell to remain blank or return "0" if another cell is blank or
zero. Can anbody help?




Dana DeLouis

Would this help? I was looking at your part that says...
"...if another cell is blank or zero."...

=IF(OR(ISBLANK(C1),C1=0),"",MIN(A1:B10))

HTH
--
Dana DeLouis
Win XP & Office 2003


"CM" wrote in message
...
I am using =min(a1:a10,b1:b10)to return the min number in two fields,
however
i want the cell to remain blank or return "0" if another cell is blank or
zero. Can anbody help?





All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com