Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find, Loop, Subtotal


I have to use VBA. The only problem with doing it the way you suggeste
is that the cell it is looking for contains both numbers and text so
can't use = to capture cells. Also, I wont know an acutal locating o
where the sum formula will be placed because it is going to find
specific entry, insert a row, then place the sum formulas for eac
column in the appropriate place. Any more advice?

Thanks so much,
Adriann

--
Adresmit
-----------------------------------------------------------------------
Adresmith's Profile: http://www.excelforum.com/member.php...nfo&userid=913
View this thread: http://www.excelforum.com/showthread.php?threadid=27373

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Find, Loop, Subtotal

I have to use VBA. The only problem with doing it the way you suggested
is that the cell it is looking for contains both numbers and text so I
can't use = to capture cells.


NOW you say the data in the cells down't look like what you showed in your
example. Grrrrr.... It always helps to post your REAL data, so the appropriate
solution can be given. Doing otherwise wastes time on both ends.

SUMIF can use wildcards when searching for text entries, i.e.

=SUMIF($A$1:$A$100,"*5200*",$C$1:$C$100)

Also, I wont know an acutal locating of
where the sum formula will be placed because it is going to find a
specific entry, insert a row, then place the sum formulas for each
column in the appropriate place.


Then that's another task your macro has to do: define the upper and lower rows
to be SUMMED for each column, and generate the appropriate formula using those
row numbers. That will be a lot faster than identifying the rows, then using
For/Next loop to test each cell, i.e. the "brute force" method.


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
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
subtotal loop wilson@irco Excel Discussion (Misc queries) 0 March 9th 06 07:50 PM
Find & loop in VBA Noemi Excel Discussion (Misc queries) 3 January 25th 06 03:39 AM
Find, Loop, Subtotal Adresmith[_9_] Excel Programming 1 October 29th 04 09:42 PM
Find loop Jamie[_8_] Excel Programming 2 April 22nd 04 10:00 PM


All times are GMT +1. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"