Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default IF Function testing a range and a cell

I need to check cells F11 to F24 and F42 to see if any are blank, and if so
return answer X and if not answer Y. This is what I got so far
=IF(COUNTBLANK(F11:F24)=1,"X","Y") but it only checks cells F11:F24. I
cannot not figure out how to check for F42.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default IF Function testing a range and a cell

=IF(OR((F11=""),(F24=""),(F42="")),"Y","X")
--
Gary''s Student - gsnu200733
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default IF Function testing a range and a cell

Regarding (F11=""),(F24="") ..... will this work for the range of cells
between F11 and F24, or just F11 and F24? I need it to check the range F11
to F24.

Scott

"Gary''s Student" wrote:

=IF(OR((F11=""),(F24=""),(F42="")),"Y","X")
--
Gary''s Student - gsnu200733

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default IF Function testing a range and a cell

You will need to reverse the position of x and y in my previous post.
--
Gary''s Student - gsnu200733


"Scott" wrote:

I need to check cells F11 to F24 and F42 to see if any are blank, and if so
return answer X and if not answer Y. This is what I got so far
=IF(COUNTBLANK(F11:F24)=1,"X","Y") but it only checks cells F11:F24. I
cannot not figure out how to check for F42.


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 range of cells for part of cell content Daniel Excel Worksheet Functions 5 March 25th 10 08:14 PM
Testing if a cell is within a range Conan Kelly Excel Programming 4 September 11th 06 07:41 PM
Testing Range from other Sheets Steven Excel Programming 1 March 9th 06 06:11 PM
Cell in Range Testing Function Jim C.[_2_] Excel Programming 2 July 23rd 03 06:59 PM


All times are GMT +1. The time now is 12:14 AM.

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"