Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default testing for a value in a cell

I want to test the value in a cell and return a value if it's "yes", another
if it's"no" and yet another if null in a cell on another worksheet.
I tried using IF but couldn't get it to work - I'm sure I'm missing
something really simple but can't put my finger on it!!!

Help.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default testing for a value in a cell

Hi there Dave Eade,

I used two workbooks named "test1.xls" and "test2.xls"
In test1.xls i used the number 1 in cell A1 and the number 2 in cell A2. In
test2.xls i used the number 3 in cell A1

I placed the formula in test1.xls in cell C2.
Formula is :
=IF(A2=1,"YES",IF(B2=2,"YES",IF([test2.xls]Sheet1!$A$2=3,"YES","NO")))

Works fine for me. You can tweak it to suit your needs

Let us know if this works for you

Regards

Garreth

--

Thank you and Regards

Garreth Lombard


"Dave Eade" wrote:

I want to test the value in a cell and return a value if it's "yes", another
if it's"no" and yet another if null in a cell on another worksheet.
I tried using IF but couldn't get it to work - I'm sure I'm missing
something really simple but can't put my finger on it!!!

Help.

Thanks

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
Testing cell value for greater than 0 Raj[_2_] Excel Worksheet Functions 1 November 23rd 09 01:52 AM
Testing a cell value Finance Guru Excel Worksheet Functions 2 January 19th 09 12:44 PM
testing for character strings within a cell MKB Excel Worksheet Functions 2 August 29th 06 06:54 PM
Testing for Cell Fill Color Jim Pockmire Excel Worksheet Functions 1 January 12th 06 11:47 PM
Testing positions in a cell MarcusA Excel Discussion (Misc queries) 2 November 4th 05 02:25 AM


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