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: 1
Default Search Cells


I am trying to write a VBA code that when executed will search tw
columns within my worksheet, the first is the date column and th
second a column for smokers. When the code is run I would like it t
ask the user which date he would like to search for, once selected th
program will look for all cells with the specific date and the
evaluate if the corresponding rows in Smokers have a number 1 in them
if they do it will count the one and so until all rows that satisy th
specified date in the date column and the number 1 in the Smoker
column.

Once the count is completed it the macro will insert a table whic
will have heading date and number of smokers, and will then put th
date and count delow each of these headings.

Is it also possible to have the code just run a complete scan on th
worksheet and just find all matching dates and their correspondin
smoker info, find the count and then add them to a table with te
headings Date and # of Smoker

--
kwedde0
-----------------------------------------------------------------------
kwedde01's Profile: http://www.excelforum.com/member.php...fo&userid=2415
View this thread: http://www.excelforum.com/showthread.php?threadid=38322

 
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
protect cells in excel, but also allow a search in those cells? LindaAlex Excel Worksheet Functions 2 January 28th 10 02:51 PM
search within a range of cells? [email protected] Excel Discussion (Misc queries) 2 April 22nd 07 08:08 AM
Can i search for cells of a particular color Ashutosh Excel Discussion (Misc queries) 1 November 22nd 06 05:18 PM
Search for all cells containing a formula fiona nelson Excel Discussion (Misc queries) 2 June 7th 06 11:38 PM
Cells.Find , why it DOESN'T search ? help Andrzej Excel Programming 7 May 29th 05 07:25 AM


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