#1   Report Post  
Posted to microsoft.public.excel.programming
Zax Zax is offline
external usenet poster
 
Posts: 2
Default Routine??

do possible is gather with a VBA routine of the similar data? If one like?



Example imagines of have the list of underlying values for column:


E F G H

6300 3600 1500 1200
6300 3600 1500 1200
6300 3600 1500 1200
6200 3600 1500 1100



I would want after the throwing of a VBA routine the result to be:

C E F G H
3 6300 3600 1500 1200
1 6200 3600 1500 1100




Where it in the C column comes me suitable the quantity from cells in
horizontal that they have the similar values.

NB.: The values in the columns could occupy 1 or more columns therefore
record a [macro] on a precise range]of columns it could not be
sufficient.


Thank you still.
You excuse for my English.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Routine??

Select you data, then do Data=Filter=Advanced Filter, select the uniques
checkbox in the lower left corner of the resulting dialog, select copy and
designate a location on the sheet. You can leave the criteria empty.

Turn on the macro recorder while you do it if you need code. After you get
the code, you can modify it to copy the results to another sheet. (you can
manually work from another sheet, by starting on that sheet and ignoring the
error warning).

--
Regards,
Tom Ogilvy

"Zax" wrote in message
...
do possible is gather with a VBA routine of the similar data? If one like?



Example imagines of have the list of underlying values for column:


E F G H

6300 3600 1500 1200
6300 3600 1500 1200
6300 3600 1500 1200
6200 3600 1500 1100



I would want after the throwing of a VBA routine the result to be:

C E F G H
3 6300 3600 1500 1200
1 6200 3600 1500 1100




Where it in the C column comes me suitable the quantity from cells in
horizontal that they have the similar values.

NB.: The values in the columns could occupy 1 or more columns therefore
record a [macro] on a precise range]of columns it could not be
sufficient.


Thank you still.
You excuse for my English.




  #3   Report Post  
Posted to microsoft.public.excel.programming
Zax Zax is offline
external usenet poster
 
Posts: 2
Default Routine??


"Tom Ogilvy" ha scritto nel messaggio
...
Select you data, then do Data=Filter=Advanced Filter, select the uniques
checkbox in the lower left corner of the resulting dialog, select copy and
designate a location on the sheet. You can leave the criteria empty.

Turn on the macro recorder while you do it if you need code. After you

get
the code, you can modify it to copy the results to another sheet. (you

can
manually work from another sheet, by starting on that sheet and ignoring

the
error warning).

--
Regards,
Tom Ogilvy


Thank you for your suggestion.
but for count the values equal thing could I do?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Routine??

=sumproduct((Sheet1!$E$2:$E$200=E2)*(Sheet1!$F$2:$ F$200=F2)*(Sheet1!$G$2:$G$
200=G2)*(sheet1!$H$2:$H$200=H2))
drag fill down.

--

Regards,
Tom Ogilvy



"Zax" wrote in message
.. .

"Tom Ogilvy" ha scritto nel messaggio
...
Select you data, then do Data=Filter=Advanced Filter, select the

uniques
checkbox in the lower left corner of the resulting dialog, select copy

and
designate a location on the sheet. You can leave the criteria empty.

Turn on the macro recorder while you do it if you need code. After you

get
the code, you can modify it to copy the results to another sheet. (you

can
manually work from another sheet, by starting on that sheet and ignoring

the
error warning).

--
Regards,
Tom Ogilvy


Thank you for your suggestion.
but for count the values equal thing could I do?




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
sub routine Gord Dibben Excel Discussion (Misc queries) 0 November 13th 09 12:15 AM
Sort Routine Platinum girl[_2_] Excel Discussion (Misc queries) 0 March 9th 07 03:21 PM
simplifying routine KneeDown2Up New Users to Excel 5 January 4th 07 05:28 PM
Ending a routine art Excel Programming 1 October 27th 03 10:54 AM
Need VBA Routine John M. Lembo Excel Programming 0 July 13th 03 01:51 AM


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