Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
umop apisdn
 
Posts: n/a
Default First column that does not contain "Cucumber"

Hi,

I have 100 columns. How do I find the first column that does not contain
any cell with the value "Cucumber".

Thanks for any help,

Rob


  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

one way

Sub findnot()
For Each c In Range("c6:g6")
If ucase(c) < "CUCUMBER" Then MsgBox c.Column: Exit Sub
Next
End Sub

--
Don Guillett
SalesAid Software

"umop apisdn" wrote in message
...
Hi,

I have 100 columns. How do I find the first column that does not contain
any cell with the value "Cucumber".

Thanks for any help,

Rob




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

Hi
for a formula approach try something like the following array formula
(entered with CTRL+SHIFT+ENTER):
=MIN(IF(A1:X100="Cucumber",COLUMN(A1:X100))

--
Regards
Frank Kabel
Frankfurt, Germany


umop apisdn wrote:
Hi,

I have 100 columns. How do I find the first column that does not
contain any cell with the value "Cucumber".

Thanks for any help,

Rob


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
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM
Putting text in a column based on variable text from another colum Jacky D. Excel Discussion (Misc queries) 1 December 16th 04 06:09 PM
how to fit my column unmoved eventhough i scroll down? Zxing New Users to Excel 1 November 28th 04 06:28 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 2 November 27th 04 01:55 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 0 November 26th 04 03:19 PM


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