Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jamesy
 
Posts: n/a
Default Simple IF statement (hopefully!!)

Morning,

Just a quick one, how do I constuct the below...

A1 A2
0% 0%

I need a formula in A3 that will say "YES" if A1 and A2 =0%.

Many thanks,
James.
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Simple IF statement (hopefully!!)

Hi
This depends on whether your cell is formatted as a percentage or text. Try:
=IF(A1=A2=0,"YES","")
or
=IF(A1=A2="0%","YES","")

Hope this helps.
Andy.

"Jamesy" wrote in message
...
Morning,

Just a quick one, how do I constuct the below...

A1 A2
0% 0%

I need a formula in A3 that will say "YES" if A1 and A2 =0%.

Many thanks,
James.



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Simple IF statement (hopefully!!)

That doesn't work!! I wonder why? Anyway, try these instead:
=IF(AND(A1=0,A2=0),"YES","")
or
=IF(AND(A1="0%",A2="0%"),"YES","")

Andy.

<Andy wrote in message ...
Hi
This depends on whether your cell is formatted as a percentage or text.
Try:
=IF(A1=A2=0,"YES","")
or
=IF(A1=A2="0%","YES","")

Hope this helps.
Andy.

"Jamesy" wrote in message
...
Morning,

Just a quick one, how do I constuct the below...

A1 A2
0% 0%

I need a formula in A3 that will say "YES" if A1 and A2 =0%.

Many thanks,
James.





  #4   Report Post  
Posted to microsoft.public.excel.misc
Sandy Mann
 
Posts: n/a
Default Simple IF statement (hopefully!!)

<Andy wrote in message ...
That doesn't work!! I wonder why?


=IF(A1=A2=0,"YES","")


I don't know if this is true - perhaps someone who knows about the inner
workings of Excel will be able to tell us - but perhaps XL is reading it
as:

=IF(A1=(A2=0),"YES","")

which would be the equivalent to:

=IF(0=TRUE,"YES","")

Therefore the FALSE argument is returned.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


<Andy wrote in message ...
That doesn't work!! I wonder why? Anyway, try these instead:
=IF(AND(A1=0,A2=0),"YES","")
or
=IF(AND(A1="0%",A2="0%"),"YES","")

Andy.

<Andy wrote in message ...
Hi
This depends on whether your cell is formatted as a percentage or text.
Try:
=IF(A1=A2=0,"YES","")
or
=IF(A1=A2="0%","YES","")

Hope this helps.
Andy.

"Jamesy" wrote in message
...
Morning,

Just a quick one, how do I constuct the below...

A1 A2
0% 0%

I need a formula in A3 that will say "YES" if A1 and A2 =0%.

Many thanks,
James.








  #6   Report Post  
Posted to microsoft.public.excel.misc
chalky
 
Posts: n/a
Default Simple IF statement (hopefully!!)


Personal i would use an AND() formula, ie:

=IF(AND(A1=0%,A2=0%),"Yes","")

thanks
Chris


--
chalky
------------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...o&userid=23758
View this thread: http://www.excelforum.com/showthread...hreadid=551774

  #7   Report Post  
Posted to microsoft.public.excel.misc
Jamesy
 
Posts: n/a
Default Simple IF statement (hopefully!!)

Superb guys, helpful as always.

"chalky" wrote:


Personal i would use an AND() formula, ie:

=IF(AND(A1=0%,A2=0%),"Yes","")

thanks
Chris


--
chalky
------------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...o&userid=23758
View this thread: http://www.excelforum.com/showthread...hreadid=551774


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
Long IF Statement rmitchell87 Excel Discussion (Misc queries) 2 October 2nd 05 03:50 AM
IF statement(?) contrarian Excel Discussion (Misc queries) 3 September 30th 05 06:14 PM
IF Statement problem trixma New Users to Excel 3 September 27th 05 06:36 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 10:53 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"