Dissect IF Statement

  • Thread starter Thread starter DP
  • Start date Start date
D

DP

Hi:

I need help with this complicated IF Statement. Would you please let me
know what the formula means?

=IF(LEFT(QBCash!$B2,5)="Total","",IF(ISBLANK(QBCash!$B2),$A1,QBCash!$B2))

Thanks,
Diana
 
First, it is checking if B2 on sheet QBCash starts with 'Total', if it does
it returns nothing.

Then it checks if it is blank, if it is, if returns the value in cell A1 on
the active sheet, otherwise it returns that value in B2.
 
If the value in QBCash B2 starts with Total (5 leftmost characters = "Total"),
then show "" (make the cell look blank).

If QBCash B2 doesn't start with Total, then check to see if it's blank. If it
is, then show what's in A1 of the cell with the formula.

If it's not blank, then show what's in QBCash B2.
 
Back
Top