# Help with formula

G

#### Geestar

I work for a small homeless charity in Kent, UK, and I am setting up a way
of recording our housing benefit payments made to us.

Basically, What I would like to do is have a formula in box T11 that
displays the following:

If the date in K11 is before or the same as todays date in O11 then the
figure in T11 should be the sum of N11 multiplied by H11.
If the date in K11 is blank or after todays date in O11 then the figure in
T11 should be the sum of R11 x H11.

At present I have the following formula in T11
=IF(K11<=O11,SUM(N11*H11),IF(K11>O11,SUM(R11*H11))) however if cell K11 is
empty it does not calculate propery!

Some advice would be greatly appreciated!

Many Thanks

Regards

Gareth

M

#### Mike H

Try this

=IF(K11<=O11,N11*H11,R11*H11)

Mike

M

#### Max

One guess, try:
=IF(OR(K11="",O11=""),"",IF(K11<=O11,N11*H11,R11*H11))

G

#### Geestar

this doesnt seem to have worked either! I really need something in the
formula that counts cell K11 as todays date if it is left blank

G

#### Geestar

nearly there max! although it now shows a blank if K11 is blank! I need it
T11 to show the value of R11*H11 if K11 is blank!

F

#### Fuzzy

=IF(K11=0,R11*H11,IF(K11<=O11,N11*H11,R11*H11))
The above works...though its a little longer)

M

#### Max

Geestar said:
nearly there max! although it now shows a blank if K11 is blank! I need it
T11 to show the value of R11*H11 if K11 is blank!

Try this rendition in T11:
=IF(O11="","",IF(OR(K11="",K11>O11),R11*H11,N11*H11))

---

G

#### Geestar

Fuzzy - you're a star! well done!

thank you ever so much!

S

#### Sandy Mann

Does:

=IF(K11<=MAX(TODAY(),O11),N11,R11)*H11

Do what you want?

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings