PC Review


Reply
Thread Tools Rate Thread

Automatic formula entry, file save and cell blanking

 
 
Vipin Palazhi
Guest
Posts: n/a
 
      19th Nov 2008
Hello All,

I have a few questions that I hope you guys will be able to help me with. I
am really new to this and have absolutely no programming knowledge.

1. I am putting together an excel sheet for data collection, which can
contain few thousand entries one in each row ranging from columns 1 to 18.
Some of these cells have formulas previously entered like vlookup, len etc.
When data is entered in columns 1 and 2, the rest of the cells are
automatically filled based on these formulas. The rows from 2 to 51 have
these formulas entered in sequence. Now this is my problem: since there might
be few thousand entries, it becomes tedious to enter the formula in each and
every row, not knowing how many rows to enter. Is there any VB code that will
automatically enter the formula in the next row if it detects an entry in the
first two columns? I have tried to select and drag the cells but the formula
doest come our properly and the numbers all get mixed up.

2. After all the data is entered in the above file, the user will close it.
I would like it to automatically save (save as, so that the original file is
intact) it in a given folder in C: with a name already specified in a cell
say A1 along with the present date.

3. Since the same template would be used in different sites, again a couple
of thousands. It would be a nice option if the user could click on the save
icon, which instead of over writing, uses the save as option to save it as a
new file with name specified in a cell as mentioned above. After it saves,
the first two columns where the data has been entered should be blanked. This
will minimise user involvement and speed up the data collection process.

I have seen various codes on this site, but none were like I wanted. I also
tried putting them together without any success. Certainly hope someone out
there would be kind enough to help me out, keeping in mind that I have no
programming knowledge.

Thanks in advance.
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      19th Nov 2008
This can help you with the first question. Say we have data in column A from
A1 thru A1000 and we have a formula in B1 only.

We want to copy down from B2 to where the data ends in column A.

1. click on B1
2. put the mouse in the center of B1 and the cursor will become a hollow plus
3. pull the mouse down to the cell edge and the cursor will become a thin
plus with arrowheads
4. pull the mouse over to the corner and the cursor will become a solid plus
5. double-right-click and the formula will be copied down column B as far as
there is data in column A
--
Gary''s Student - gsnu200814


"Vipin Palazhi" wrote:

> Hello All,
>
> I have a few questions that I hope you guys will be able to help me with. I
> am really new to this and have absolutely no programming knowledge.
>
> 1. I am putting together an excel sheet for data collection, which can
> contain few thousand entries one in each row ranging from columns 1 to 18.
> Some of these cells have formulas previously entered like vlookup, len etc.
> When data is entered in columns 1 and 2, the rest of the cells are
> automatically filled based on these formulas. The rows from 2 to 51 have
> these formulas entered in sequence. Now this is my problem: since there might
> be few thousand entries, it becomes tedious to enter the formula in each and
> every row, not knowing how many rows to enter. Is there any VB code that will
> automatically enter the formula in the next row if it detects an entry in the
> first two columns? I have tried to select and drag the cells but the formula
> doest come our properly and the numbers all get mixed up.
>
> 2. After all the data is entered in the above file, the user will close it.
> I would like it to automatically save (save as, so that the original file is
> intact) it in a given folder in C: with a name already specified in a cell
> say A1 along with the present date.
>
> 3. Since the same template would be used in different sites, again a couple
> of thousands. It would be a nice option if the user could click on the save
> icon, which instead of over writing, uses the save as option to save it as a
> new file with name specified in a cell as mentioned above. After it saves,
> the first two columns where the data has been entered should be blanked. This
> will minimise user involvement and speed up the data collection process.
>
> I have seen various codes on this site, but none were like I wanted. I also
> tried putting them together without any success. Certainly hope someone out
> there would be kind enough to help me out, keeping in mind that I have no
> programming knowledge.
>
> Thanks in advance.

 
Reply With Quote
 
Vipin Palazhi
Guest
Posts: n/a
 
      20th Nov 2008
Hi Gary,

Thanks for the reply. I have already tried that approach, however, as I
mentioned, although if is in a sequence, the formula does not get transferred
properly. The numbers all get messed up and I have to correct them manually.
Hence I was wondering if there was a VB code that would automatically check
the formula in one row, and put them in the next as per the sequence given.

"Gary''s Student" wrote:

> This can help you with the first question. Say we have data in column A from
> A1 thru A1000 and we have a formula in B1 only.
>
> We want to copy down from B2 to where the data ends in column A.
>
> 1. click on B1
> 2. put the mouse in the center of B1 and the cursor will become a hollow plus
> 3. pull the mouse down to the cell edge and the cursor will become a thin
> plus with arrowheads
> 4. pull the mouse over to the corner and the cursor will become a solid plus
> 5. double-right-click and the formula will be copied down column B as far as
> there is data in column A
> --
> Gary''s Student - gsnu200814
>
>
> "Vipin Palazhi" wrote:
>
> > Hello All,
> >
> > I have a few questions that I hope you guys will be able to help me with. I
> > am really new to this and have absolutely no programming knowledge.
> >
> > 1. I am putting together an excel sheet for data collection, which can
> > contain few thousand entries one in each row ranging from columns 1 to 18.
> > Some of these cells have formulas previously entered like vlookup, len etc.
> > When data is entered in columns 1 and 2, the rest of the cells are
> > automatically filled based on these formulas. The rows from 2 to 51 have
> > these formulas entered in sequence. Now this is my problem: since there might
> > be few thousand entries, it becomes tedious to enter the formula in each and
> > every row, not knowing how many rows to enter. Is there any VB code that will
> > automatically enter the formula in the next row if it detects an entry in the
> > first two columns? I have tried to select and drag the cells but the formula
> > doest come our properly and the numbers all get mixed up.
> >
> > 2. After all the data is entered in the above file, the user will close it.
> > I would like it to automatically save (save as, so that the original file is
> > intact) it in a given folder in C: with a name already specified in a cell
> > say A1 along with the present date.
> >
> > 3. Since the same template would be used in different sites, again a couple
> > of thousands. It would be a nice option if the user could click on the save
> > icon, which instead of over writing, uses the save as option to save it as a
> > new file with name specified in a cell as mentioned above. After it saves,
> > the first two columns where the data has been entered should be blanked. This
> > will minimise user involvement and speed up the data collection process.
> >
> > I have seen various codes on this site, but none were like I wanted. I also
> > tried putting them together without any success. Certainly hope someone out
> > there would be kind enough to help me out, keeping in mind that I have no
> > programming knowledge.
> >
> > Thanks in advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula to get the file save date in a cell? =?Utf-8?B?R3VtbWJ5?= Microsoft Excel Programming 7 11th Mar 2008 04:04 AM
Is this possible ? Automatic cell entry =?Utf-8?B?VGF0ZWJhbmE=?= Microsoft Excel Misc 2 19th Apr 2007 02:35 PM
Automatic cell entry =?Utf-8?B?ZGVuaXNlaA==?= Microsoft Excel Misc 4 20th Jun 2006 05:48 PM
a protected cell w/formula only updates only on file save? =?Utf-8?B?c25hcA==?= Microsoft Excel Misc 2 18th May 2005 12:35 PM
Automatic entry of # in cell Voodoodan Microsoft Excel Misc 5 20th Jul 2004 11:45 AM


Features
 

Advertising
 

Newsgroups
 


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