Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Help: Formula put into entire row creates large file size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bill.liu@gmail.com - 27 Jul 2006 01:06 GMT
Hi,

I have a spreadsheet where I would like one column to be the
concatenation of two other columns.

For example, in column C I would have =A1&B1.

This excel file will be given to people and they will fill in values
into columns A and B.  The trick is, I don't know how many rows there
will be, so I don't know how many rows in column C should have this
formula.

If I paste this formula into the entire column C, the excel file blows
up to 3 megabytes.  (It's only 15KB without this column).

Are there ways for me to accomplish this more efficiently?

Thanks for any help
Dave Peterson - 27 Jul 2006 01:19 GMT
Are you doing this via a macro?

If yes:

dim LastRow as long
with worksheets("Sheet1")
 lastrow = .cells(.rows.count,"A").end(xlup).row
 .range("C1:C" & lastrow).formula = "=a1&b1"
end with

I used the last used cell in column A to find the last row.  You may want to
change that to a column you know always has information in it if the row is
used.

> Hi,
>
[quoted text clipped - 14 lines]
>
> Thanks for any help

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.