#1   Report Post  
Posted to microsoft.public.excel.misc
Libby
 
Posts: n/a
Default "IF" Formulae

I'm trying to create a formula causing one of three answers. The object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and 1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion. Any
suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default "IF" Formulae

Seems to me that you really only have two options (1 or Not 1). Try this:

=if(G8=1,"year","years")

HTH,
Elkar

"Libby" wrote:

I'm trying to create a formula causing one of three answers. The object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and 1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion. Any
suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
NUMBnut
 
Posts: n/a
Default "IF" Formulae

You need to add the two formulas together. Try:
=IF(G81, "years","year")+IF(G8<1,"years")
In all reality, you shouldn't even need the second formula, but try that
above and it should work.

"Libby" wrote:

I'm trying to create a formula causing one of three answers. The object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and 1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion. Any
suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Libby
 
Posts: n/a
Default "IF" Formulae

Much thanks. I was making it too complicated.

"NUMBnut" wrote:

You need to add the two formulas together. Try:
=IF(G81, "years","year")+IF(G8<1,"years")
In all reality, you shouldn't even need the second formula, but try that
above and it should work.

"Libby" wrote:

I'm trying to create a formula causing one of three answers. The object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and 1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion. Any
suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default "IF" Formulae

Hi Libby

But what if G8 is negative?
Perhaps =IF(ABS(G8)=1,"year","years")


--
Regards

Roger Govier


"Libby" wrote in message
...
Much thanks. I was making it too complicated.

"NUMBnut" wrote:

You need to add the two formulas together. Try:
=IF(G81, "years","year")+IF(G8<1,"years")
In all reality, you shouldn't even need the second formula, but try
that
above and it should work.

"Libby" wrote:

I'm trying to create a formula causing one of three answers. The
object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and
1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion.
Any
suggestions?





  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default "IF" Formulae

=if(g8=1,"year","years")

or
="year"&if(g8=1,"","s")

Libby wrote:

I'm trying to create a formula causing one of three answers. The object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and 1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion. Any
suggestions?


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default "IF" Formulae

="year"&IF(G81,"s","")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Libby" wrote in message
...
I'm trying to create a formula causing one of three answers. The object
being any one of 0, 1 or 1. I need 0 an 1 to answer "years" and 1 to
answer "year". My efforts below.

=IF(G81,"years","year")*IF(G8<1,"years")

My problem is that I can't override the first false conclusion. Any
suggestions?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change to formulae Emma Hope Excel Worksheet Functions 3 September 5th 05 09:16 PM
Searching TEXT in formulae, rather than results of formulae AndyE Excel Worksheet Functions 1 July 15th 05 10:57 AM
Dynamic formulae - similar to lotus 123 for excel JohnD Excel Discussion (Misc queries) 1 July 5th 05 11:41 PM
XL2002 Clipboard doesn't paste formulae Jonathan Excel Discussion (Misc queries) 2 May 23rd 05 12:17 PM
vlookup change column index position - without changing formulae loopyloobyloo Excel Worksheet Functions 1 November 26th 04 01:35 PM


All times are GMT +1. The time now is 07:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"