View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default How do get the LOOKUP function to not read empty cells as zeros

Maybe

=IF(ISBLANK(A1),"",LOOKUP(A1,{0,1},{1,0}))

Mike

"LGriffin" wrote:

I am trying to reverse code 0s and 1s with =LOOKUP (reference cell,
{0,1},{1,0}). When the reference cell is empty, I'd like the function to
also return an empty cell.