LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to check if the cell contains number 1 by moving down thecolumns?

Hi,

Suppose the cursor is on a certain row (say row 3 or 40), I want to
check if each cell from column B to column AF contains the number 1.
If it does, the counter i is incremented by 1. I want to do it by a
for next loop such that the column number is a variable. Can it be
done this way? Thank you.

Mike
 
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
Check if the value of one cell can be found in a number of other c James T Kirk Excel Programming 2 November 5th 08 03:35 PM
check if a cell has date or a number mona Excel Discussion (Misc queries) 5 May 15th 08 02:39 PM
Check colour of number, then populate cell KCG Excel Worksheet Functions 1 August 6th 07 02:50 PM
Check boxes in Excel: Not moving with cell... Sistercoo Excel Discussion (Misc queries) 3 January 11th 07 05:48 PM
Moving Check Boxes Rob J Excel Discussion (Misc queries) 0 September 25th 06 05:29 PM


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