Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default combining rows

Send your file to my address below

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"vern" wrote in message
...
What I sent over was just a small portion, is there a way to have this
look
at the entire sheet? there could possibly be up to 500 rows, not just a8 -
a19

thank you

"Don Guillett" wrote:

=IF(A12="","",VLOOKUP(A12,ESTIMATE!$A$9:$B$15,2,0) )
and
=IF($A12="","",SUMIF(ESTIMATE!$A$9:$A$15,$A12,ESTI MATE!K$9:K$15))
copied across and down or a macro

Sub UpdateFromEstimteSAS()
Set ds = Sheets("Budget")
With Sheets("Estimate")
Lr = .Cells(Rows.Count, 1).End(xlUp).Row
With .Range("a8:a" & Lr)
..AdvancedFilter Action:=xlFilterInPlace, Unique:=True
..Copy ds.Range("a17")
..AutoFilter
..AutoFilter
End With
dlr = ds.Cells(Rows.Count, 1).End(xlUp).Row
ds.Range("b19:b" & dlr).Formula = _
"=IF($A19="""","""",VLOOKUP($A19,ESTIMATE!$A$9:$B$ 15,2,0))"
ds.Range("c19:h" & dlr).Formula = _
"=IF($a19="""","""",SUMIF(ESTIMATE!$A$9:$A$15,$A19 ,ESTIMATE!K$9:K$15))"
ds.Range("b19:h" & dlr).Value = ds.Range("b19:h" & dlr).Value
End With
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"vern" wrote in message
...
Thank you Don, I just sent you the information.

Vern

"Don Guillett" wrote:

Could using SUMIF do it?

If desired, send your file to my address below. I will only look
if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"vern" wrote in message
...
I am loking for a macro that I can put in a command button that will
look
through a work sheet in column "A" for identical numerical values.
once
found
take all rows with identical values and combine the rows into one in
a
different worksheet. when combined it must add together the
different
values
of the rows in columns "f", "g" "h", "i" and "j".

can this be done?

.


.


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
Combining rows LOST Excel Discussion (Misc queries) 4 October 29th 08 05:41 PM
Combining information from rows Danielle Excel Worksheet Functions 3 July 3rd 08 03:34 PM
Combining Rows Jim Excel Worksheet Functions 7 March 9th 07 10:27 PM
combining duplicate rows jezzica85 Excel Discussion (Misc queries) 1 March 18th 06 02:30 PM
Combining rows SteveRJ Excel Worksheet Functions 1 June 17th 05 01:02 PM


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