Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
scallyte
 
Posts: n/a
Default Test for Single Character That is in an Array

Cell D116 on my worksheet contains the character "C".

Another cell on the worksheet contains the (non-working) test:

=IF(D116 LIKE "A..L", "yes", "no")

This doesn't work. I want it to return "yes" because the character
"C" is in the array "A..L" but I can't figure out how to do this. I
could accomplish this using VB, but would rather use a worksheet
function.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

one way
=IF(D116=CHAR(65),IF(D116<=CHAR(76),"yes","no")," no")

Cheers
JulieD


"scallyte" wrote in message
m...
Cell D116 on my worksheet contains the character "C".

Another cell on the worksheet contains the (non-working) test:

=IF(D116 LIKE "A..L", "yes", "no")

This doesn't work. I want it to return "yes" because the character
"C" is in the array "A..L" but I can't figure out how to do this. I
could accomplish this using VB, but would rather use a worksheet
function.



  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
maybe try:
=IF(AND(CODE(D116)=CODE("A"),CODE(D116)<=CODE("L" )),"yes","no")

--
Regards
Frank Kabel
Frankfurt, Germany

"scallyte" schrieb im Newsbeitrag
m...
Cell D116 on my worksheet contains the character "C".

Another cell on the worksheet contains the (non-working) test:

=IF(D116 LIKE "A..L", "yes", "no")

This doesn't work. I want it to return "yes" because the character
"C" is in the array "A..L" but I can't figure out how to do this. I
could accomplish this using VB, but would rather use a worksheet
function.


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
Working with array equations OkieViking Excel Discussion (Misc queries) 2 January 23rd 05 07:43 AM
Transpose into a _working_ transposed array Fred Holmes Excel Discussion (Misc queries) 1 January 13th 05 11:31 PM
Removing ' character from cells Don Excel Discussion (Misc queries) 5 December 21st 04 05:41 PM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM
Keeping Array values? MJSlattery Excel Worksheet Functions 0 November 5th 04 08:25 PM


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

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

About Us

"It's about Microsoft Excel"