+ Reply to Thread
Results 1 to 4 of 4

looping through excel cells based on criteria using VBA

  1. #1
    Registered User
    Join Date
    01-04-2008
    Posts
    5

    looping through excel cells based on criteria using VBA

    Dear Friend,



    i am using excel2003.



    my data:



    status project



    yes project1



    yes Project2



    yes project1



    yes project2



    yes project3



    no project1



    so i have the project name in the validation list.so if i choose project 1 from rhe validation list then i have to count how much "yes" and how mush "no" and have t odisplay the report in another worksheet.



    so in next sheet my data disply should be as follows:



    project name yes no

    Project1 2 1

    Project2 2 0

    Project3 1 10



    so can any one please give VBA code to do this please
    Last edited by born2achieve; 10-06-2008 at 06:14 AM.

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    if you just want the counts you just need to use a sumproduct function, there are many posts on this forum abouthow to use it

    something like

    Please Login or Register  to view this content.
    Regards

    Dav
    Last edited by Dav; 10-06-2008 at 08:30 AM.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    Do you really need code?

    A SUMPRODUCT formula will do the required calculations
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    01-04-2008
    Posts
    5
    Thanks a lot Friends

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can Excel Draw Shapes or Angles based on Data?
    By chesspupil in forum Excel General
    Replies: 15
    Last Post: 04-30-2016, 03:31 PM
  2. Using array to sum by multiple criteria including one based on prefix
    By monkdelafunk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2008, 02:24 PM
  3. Macro to Lock cells in protected sheet depending on criteria
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-30-2008, 12:00 PM
  4. Selecting a range of cells - Excel 2007
    By brade in forum Excel General
    Replies: 1
    Last Post: 09-17-2007, 01:09 PM
  5. Shifting online data comes to excel to be shifted to adjacent cells as per formula
    By cramatr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2007, 08:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1