Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#325564 - 28/08/2009 07:37 Excel Help
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1909
Loc: London
Trying to do an IF in cell F8:
if( M8>"","SENT",F8 )

The idea is that if M8 (a date value) is greater than nothing then F8="SENT" otherwise F8 is unchanged.

Not having much luck with it.



Top
#325565 - 28/08/2009 08:33 Re: Excel Help [Re: tahir]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5915
Loc: Wivenhoe, Essex, UK
Did you mean to say F8 twice ?

That is a circular reference, how can F8 be "unchanged", where is the unchanged value going to come from ?
_________________________
Remind me to change my signature to something more interesting someday

Top
#325566 - 28/08/2009 08:41 Re: Excel Help [Re: andy]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1909
Loc: London
Yes I did. What I'm after (if possible) is something that changes the value of F8 ONLY IF M8 has a value.

Top
#325567 - 28/08/2009 08:43 Re: Excel Help [Re: tahir]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5915
Loc: Wivenhoe, Essex, UK
That is easy, just take the formula that is currently in F8 and put that into your IF statement where is says F8.
_________________________
Remind me to change my signature to something more interesting someday

Top
#325568 - 28/08/2009 08:52 Re: Excel Help [Re: andy]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1909
Loc: London
Originally Posted By: andy
That is easy, just take the formula that is currently in F8 and put that into your IF statement where is says F8.


There isn't currently a formula in F8, just a value...

Top
#325569 - 28/08/2009 09:10 Re: Excel Help [Re: tahir]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5915
Loc: Wivenhoe, Essex, UK
A cell can only contain a value or a formula, not both. So it can't work the way you are trying to do it.


Edited by andy (28/08/2009 09:10)
_________________________
Remind me to change my signature to something more interesting someday

Top
#325570 - 28/08/2009 09:15 Re: Excel Help [Re: andy]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1909
Loc: London
Hmm. Thanks Andy

Top
#325571 - 28/08/2009 09:17 Re: Excel Help [Re: tahir]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5915
Loc: Wivenhoe, Essex, UK
You have three options:

- make the "SENT" message appear in the next door cell
- use conditional formatting to indicate it is sent
- write a macro that runs down the column replacing the value in the cells with "SENT"
_________________________
Remind me to change my signature to something more interesting someday

Top
#325572 - 28/08/2009 10:10 Re: Excel Help [Re: andy]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1909
Loc: London
Looks like at least part of my problem is the date value, just did this:

=SUM(IF(M8>"",1,0))

If M8 is a date or number the result is "0", if M8 is text the result is "1".

(My Excel skills are good, not)


Top
#325573 - 28/08/2009 11:13 Re: Excel Help [Re: tahir]
Attack
addict

Registered: 01/03/2002
Posts: 598
Loc: Florida
When A1 is a date this formula returns "SENT" otherwise nothing.

=IF(AND(ISNUMBER(A1),LEFT(CELL("format",A1),1)="D"),"SENT", "")


My Google Foo is good.
_________________________
Chad

Top
#325574 - 28/08/2009 11:17 Re: Excel Help [Re: Attack]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1909
Loc: London
Originally Posted By: Attack
When A1 is a date this formula returns "SENT" otherwise nothing.

=IF(AND(ISNUMBER(A1),LEFT(CELL("format",A1),1)="D"),"SENT", "")


My Google Foo is good.


Wish I had some Google Foo today smile

I've found a much simpler/cruder way to achieve what I wanted but thanks guys.

Top