Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

formula explained

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Formula - explained

Formula - explained

ResolvedVersion 2003

Tally has attended:
Excel VBA Intro Intermediate course

Formula - explained

OK maybe a dumb question.... i need to interpret the below formula as i dont think it is doing what it should:

=IF((AND($C4="Y",$D4="Y")),$I$34*$K4,IF(AND($C4="Y",$D4="n"),($I$34*K4),$K4))

My interpretation is :

If C4 and D4 = y, then the cell K4 should = I34*K4
If C4 = Y and D4 = N, then cell k4 should = I34*K4

Is my interpretation correct, the last K4 is the cell to put the answer in?

Thanks
Tally

RE: formula - explained

Hi Tally

Which cell is the formula in in your spreadsheet?

thanks
Amanda

RE: formula - explained

Hi Amanda

Its K4... its a spreadsheet i am picking up from some one else...

Thanks
Tally

RE: formula - explained

Hi Tally

I think that you will find that the formula will throw up a circular reference if the formula is in K4 and it is also referring to that cell.

Say for example if you have the formula in cell K5, this is what would happen:

If C4 and D4 = y, then the cell K5 should =I34*K4
If C4 = Y and D4 = N, then cell K5 should = I34*K4
Otherwise (in any other situation apart from those described above) enter what is in cell K4 into cell K5

I hope this helps.

Amanda

Excel tip:

Enter formulae into multiple cells

If a formula is to be used in a series of cells, select the cells first. Now type in your formula and hold the Ctrl key while you press Enter. This enters the formula in each selected cell.

Just be careful with your absolute and relative cell references.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.