View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Johnson Ken Johnson is offline
external usenet poster
 
Posts: 1,073
Default If Function ignoring rest of formula

On Jun 24, 7:19 am, Hamed parhizkar
wrote:
I have a formula, it reads"

=A9&"\r"&B9*100&"\r"&C9&"\r"&D9&"\r"&F9&"\r"&G9*-100&"\r"&H9

The formula is being copied into a data entry system that converts the info
into different columns.

The problem is if C9= 0 then I need the "\r" to not be there and continue on
with the rest of the formula.

Is there anything I can do?


=A9&"\r"&B9*100&"\r"&IF(C9<0,C9
&"\r","")&D9&"\r"&F9&"\r"&G9*-100&"\r"&H9

Ken Johnson