Thread
: [Solved]
** Excel Formula
View Single Post
03-23-2011, 06:02 PM
Colin Legg
Windows 7 32bit
Office 2010 32bit
Expert
Join Date: Jan 2011
Location: UK
Posts: 369
Hi Rey,
Thanks, that explains it well. You don't say what should be returned if neither number is a whole number, so I will assume that at least one of them always will be.
Code:
=IF(TRUNC(A1)=A1,IF(TRUNC(B1)=B1,MIN(A1,B1),A1),B1)
Colin Legg
View Public Profile
Find all posts by Colin Legg