+ Reply to Thread
Results 1 to 3 of 3

X marks the spot

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2005
    Posts
    62

    X marks the spot

    I have a list of tools in column F. Column G, H, I, J, K, and L represent each toolbox. If I put an X in column G, that represents that that tool (column F) in box one (column G) is broken. Now, I need a macro to compile a list of every tool that is broken (has an X in Column G, H, I, J, K, or L).

  2. #2
    Tom Ogilvy
    Guest

    Re: X marks the spot

    Dim cell as Range, rng as Range
    Dim ct as Long, msg as String
    for each cell in Range("F2:F300")
    set rng = cell.offset(0,1).Resize(6)
    ct = Application.countif(rng,"x")
    if ct > 0 then
    msg = msg & cell.Value & " - " & ct & vbNewLine
    end if
    Next

    msgbox msg

    --
    Regards,
    Tom Ogilvy

    "Optitron" <Optitron.1vme2g_1127156777.5631@excelforum-nospam.com> wrote in
    message news:Optitron.1vme2g_1127156777.5631@excelforum-nospam.com...
    >
    > I have a list of tools in column F. Column G, H, I, J, K, and L
    > represent each toolbox. If I put an X in column G, that represents that
    > that tool (column F) in box one (column G) is broken. Now, I need a
    > macro to compile a list of every tool that is broken (has an X in
    > Column G, H, I, J, K, or L).
    >
    >
    > --
    > Optitron
    > ------------------------------------------------------------------------
    > Optitron's Profile:

    http://www.excelforum.com/member.php...o&userid=26729
    > View this thread: http://www.excelforum.com/showthread...hreadid=468910
    >




  3. #3
    Registered User
    Join Date
    08-28-2005
    Posts
    62
    I should have put more info. This might explain it better. I need to get the name of the tool in column F that has an "X" in column G, H, I, J, K, and L into column Q. Then I need to know how many "X"s are in that row to show how many of that tool are broken in each box. That number can go in column R
    Last edited by Optitron; 09-20-2005 at 02:05 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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