Hi ,
I have an excel sheet which i have drew below and i need to create the values for coloumn C
and the formula is
=IF($A2="Pricing", IF($B2>=0, IF(LEN($B2)=1, "+00"&$ B2, IF(LEN($B2)=2, "+0"&$ B2, IF(LEN($B2)=3, "+"&$ B2))), IF(LEN($B2)=2, "-00"&ABS($B2), IF(LEN($B2)=3, "-0"&ABS($B2), IF(LEN($B2)=4, "-"&ABS($B2))))),"")
Can anyone convert this code to SAS code so that the values in coloumn C would be
-099
-039
-009
+000
+000
+014
Items
Value
Sales
Pricing
-99.0000
Pricing
-39.0000
Pricing
-9.0000
Pricing
0.0000
Pricing
0.0000
Pricing
39.0000
Pricing
14.0000
Pricing
999.0000
Thanks
... View more