Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default X marks the spot


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

--
Optitro
-----------------------------------------------------------------------
Optitron's Profile: http://www.excelforum.com/member.php...fo&userid=2672
View this thread: http://www.excelforum.com/showthread.php?threadid=46891

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote in
message ...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default X marks the spot


Ok how do I get this list onto sheet1?

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 ms

--
Optitro
-----------------------------------------------------------------------
Optitron's Profile: http://www.excelforum.com/member.php...fo&userid=2672
View this thread: http://www.excelforum.com/showthread.php?threadid=46891

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
X marks the spot BlueFeather Excel Discussion (Misc queries) 2 December 11th 08 11:18 AM
to get the relative marks from a table of names,subjects & marks? kswarrier Excel Worksheet Functions 2 February 19th 08 08:13 AM
Hosur an IT hot spot? [email protected] Excel Worksheet Functions 0 October 17th 07 03:47 PM
I want a name in one spot and it's code in another TwoWheelDemon Excel Discussion (Misc queries) 1 March 17th 05 04:31 PM
SUMPRODUCT using offset from ROW if X marks the spot The Shaffer s Excel Worksheet Functions 3 November 2nd 04 06:14 AM


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