View Single Post
  #2   Report Post  
Old April 3rd 21, 01:48 AM posted to microsoft.public.excel.worksheet.functions
MyVeryOwnSelf[_3_] MyVeryOwnSelf[_3_] is offline
external usenet poster
 
First recorded activity by ExcelBanter: Dec 2012
Posts: 56
Default IF statement: how do I simply return the calculation in theconditional as one of the outcomes?

On Friday, March 19, 2021 at 9:59:21 AM UTC-7, David Terranova wrote:
For example, this is what I'm doing currently (simplified the calculation for clarity):

if(A1*B1 < 1, "", A1*B1)

This works fine but isn't there a way to simply return the calculation without having to repeat it manually as one of the returns?


Maybe this will help (using Excel 360 and Windows 10):
=LET(answer, A1*B1 , IF(answer<1, "", answer))