Thread: Formula
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Abilio Abilio is offline
external usenet poster
 
Posts: 22
Default Formula

I have a formula that is also calculating empty cells, it becomes a problem
when sorting the result in decending order, because it brings the empty cells
before the results I need. Here is the formula:

With Worksheets("Sheet1")
..Range("Q2:Q" & Cells(.Rows.Count, 8).End(xlUp).Row).FormulaR1C1 = _
"=IF(RC[-5]=0,"""",((RC[-4]/RC[-5])*RC[-9])*100)"
End With

Thank you very much for the help,

Abilio Andries