Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default from ranges tables ???

how to use data to create charts and database funcions as =dbmax, etc.. from
the a data in sheet1 variable ?

Because the data is import and I not know the total lines from range of the
table...

send please suggestions


Marina


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

In VBA,
Dim rng as Range
set rng = cells(rows.count,1).End(xlup)
msgbox "Value in last row, column A: " & rng.Value & _
vbNewLine & "Last Row is " & rng.row

in Formulas

=Indirect("A" & countA(A:A))

These only scratch the surface. There are many ways to determine the extent
of data depending on the conditions.
Also, if you use Data=Get External Data, the data are may be defined in a
named range (insert=Name=Define) so you could use that.

Just some additional information of interest not related to your question:
You might check out this site as well:

Orlando Magalhães Filho http://orlando.mvps.org


--
Regards,
Tom Ogilvy


"Marina Limeira" wrote in message
...
how to use data to create charts and database funcions as =dbmax, etc..

from
the a data in sheet1 variable ?

Because the data is import and I not know the total lines from range of

the
table...

send please suggestions


Marina




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default from ranges tables ???

Thanks Tom

very good ideas

so, If I defined in a named range opcion... How define per example
formulas =SUM(cities)
VBA sum[cities]

but not imagine the size from external data?
how named this variable range named?

thanks again

Marina





"Tom Ogilvy" < escreveu na mensagem
...
In VBA,
Dim rng as Range
set rng = cells(rows.count,1).End(xlup)
msgbox "Value in last row, column A: " & rng.Value & _
vbNewLine & "Last Row is " & rng.row

in Formulas

=Indirect("A" & countA(A:A))

These only scratch the surface. There are many ways to determine the
extent
of data depending on the conditions.
Also, if you use Data=Get External Data, the data are may be defined in a
named range (insert=Name=Define) so you could use that.

Just some additional information of interest not related to your question:
You might check out this site as well:

Orlando Magalhães Filho http://orlando.mvps.org


--
Regards,
Tom Ogilvy


"Marina Limeira" wrote in message
...
how to use data to create charts and database funcions as =dbmax, etc..

from
the a data in sheet1 variable ?

Because the data is import and I not know the total lines from range of

the
table...

send please suggestions


Marina






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

insert=Name=Define

Name: list1
Refersto:
=Offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),Count A(Sheet1!$1:$1))

--
Regards,
Tom Ogilvy


"Marina Limeira" wrote in message
...
Thanks Tom

very good ideas

so, If I defined in a named range opcion... How define per example
formulas =SUM(cities)
VBA sum[cities]

but not imagine the size from external data?
how named this variable range named?

thanks again

Marina





"Tom Ogilvy" < escreveu na mensagem
...
In VBA,
Dim rng as Range
set rng = cells(rows.count,1).End(xlup)
msgbox "Value in last row, column A: " & rng.Value & _
vbNewLine & "Last Row is " & rng.row

in Formulas

=Indirect("A" & countA(A:A))

These only scratch the surface. There are many ways to determine the
extent
of data depending on the conditions.
Also, if you use Data=Get External Data, the data are may be defined in

a
named range (insert=Name=Define) so you could use that.

Just some additional information of interest not related to your

question:
You might check out this site as well:

Orlando Magalhães Filho http://orlando.mvps.org


--
Regards,
Tom Ogilvy


"Marina Limeira" wrote in message
...
how to use data to create charts and database funcions as =dbmax, etc..

from
the a data in sheet1 variable ?

Because the data is import and I not know the total lines from range of

the
table...

send please suggestions


Marina








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
Dynamic data ranges in pivot tables Grey Old Man[_2_] Excel Discussion (Misc queries) 3 May 19th 10 06:41 PM
Pivot tables & Dynamic Ranges? Me! Excel Worksheet Functions 2 June 16th 09 12:58 AM
combining pivot tables, then making a ranges. HoganD87 Excel Discussion (Misc queries) 1 September 4th 07 07:52 PM
Pivot Tables with Multiple ranges Rick Excel Discussion (Misc queries) 0 August 17th 07 01:44 AM
Pivot Tables - Multiple Consolidation Ranges Chuck Harkes Excel Programming 3 September 18th 03 04:02 PM


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