Understanding complex IF Formula within IF formula

D

DP

I do not know what this formula is doing can you help?

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

Thanks for your help.

DP
 
M

Mike H

Hi,

The formula is looking at a worksheet called QBCash

Breaking the formula down


=IF(LEFT(QBCash!$B2,5)="Total","",
1. It looks at the contents of B2 and if the word 'Total' are the first 5
letters of the cell the formula return a null string


IF(ISBLANK(QBCash!$B2),$A1,
2. If that isn't TRUE it then checks if B2 is blank and if it is it returns
the value of cell A1.

3. If B2 isn't blank the value of B2 is returned

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


--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
D

DP

Hi, Mike H:

Thanks for this information. It will help me decipher other similar complex
formulas.
 
M

Mike H

Your welcome and thanks for the feedback
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dissect IF Statement 2
VBA Coding Help for Beginner 0
if function 3
Complex formula help , please. 13
Formula Response immediately? 0
Excel - Wich Function should I use? 1
Formula help 1
Problem with SUMPRODUCT 6

Top