Program or quicker way to data entry

peter8848

Board Regular
Joined
Oct 7, 2018
Messages
97
Dear All,

We have data entry from one spreadsheet (A) to another (B) as below:

(A)
abcd
199998154
267696694
350649157
462599157
590656592
663866662

<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>


(b) Instead of entering the cell as = A1 + B1 + C2 + D5 we need to enter as " = +99 + 99 + 66 + 92,

Is there any quciker way to do it or any possible vba solutions?

Cheers,

Peter
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,872
Office Version
  1. 2013
Platform
  1. Windows
Your showing us what sheet A looks like

But not what sheet B looks like.

And will it always be the same

A1 + B1 + C2 + D5

Show us what Sheet B should look like

With a few examples like two or more.

And what will activate this vba script.
You must take some action to run the script.

And provide real sheet names.
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,271
Office Version
  1. 2013
Platform
  1. Windows
Why not simply

Code:
=SUM(SheetA!A1:D1)

and drag down as required
 

peter8848

Board Regular
Joined
Oct 7, 2018
Messages
97
Hi Michael,

Thanks for your advice. I guess the manager prefer this way would be the number will never change and easy to search. Whereas we use sum(SheetA!A1:D1), the source data changed or file named changed everything is all over the place.

Cheers,

Peter
 

peter8848

Board Regular
Joined
Oct 7, 2018
Messages
97

ADVERTISEMENT

Hi My Aswer is this,

In the spreadsheet B just say one cell I need to calculate the sum of certain cells from Speadsheet A and say the sum value stays in B2 in Speadsheet B.

So we would like to enter in B2 in spreadsheet B as "= +99 + 99 + 66 + 92" rather than "= SheetA!A1 + SheetA!B1 + SheetA!C2 + SheetA!D5 etc

Cheers,

Peter
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,271
Office Version
  1. 2013
Platform
  1. Windows
If the data changes the result changes ...unless you use different cells....which is then another issue
If the sheet name changes from Sheet A to something else....so does the formula on Sheet B
If the file name changes there is no affect on the data.
I guess the manager has always done it this way and won't adapt / change their ways in the name of efficiency.
I had a boss that always wanted to make sure the formulas on our huge worksheet were correct ( one row at a time)....I tried to explain that the formulas were input via VBA and if one was correct they were ALL correct....but he still spent hours poring over them !!!
 

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,872
Office Version
  1. 2013
Platform
  1. Windows

ADVERTISEMENT

So are you saying you want a vba script to enter the Results in Sheets(B).Range("B2")
And activate the script when you double click on Range("B2")
 
Last edited:

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,872
Office Version
  1. 2013
Platform
  1. Windows
I had a Boss once who wanted to check the results of a cells formula by enetering the data into his hand held calculator and see if the resuls were correct.
If the data changes the result changes ...unless you use different cells....which is then another issue
If the sheet name changes from Sheet A to something else....so does the formula on Sheet B
If the file name changes there is no affect on the data.
I guess the manager has always done it this way and won't adapt / change their ways in the name of efficiency.
I had a boss that always wanted to make sure the formulas on our huge worksheet were correct ( one row at a time)....I tried to explain that the formulas were input via VBA and if one was correct they were ALL correct....but he still spent hours poring over them !!!
 

peter8848

Board Regular
Joined
Oct 7, 2018
Messages
97
Hi Michael M,

I agreed with you based on two spreadsheets are opened on the same time so one changes and the other one changes too no matter what. However, if Spreadsheet B is closed but source data spreadsheet A is opened with changes like insert more roles, tab name changed then when you re-open Spreadsheet B you will get different value (inserted new rows from spreadsheet A) or N/A Value if tab name of Spreadsheet A is changed. Having them like numbers adding up then whatever changes in your source data will not affect as it is fixed and locked.

Cheers,

Peter
 

peter8848

Board Regular
Joined
Oct 7, 2018
Messages
97
Hi My Aswer is This,

Yes thinking about some VBA script which will help us to manually enter all the adding up like as "= +99 + 99 + 66 + 92" rather than "= SheetA!A1 + SheetA!B1 + SheetA!C2 + SheetA!D5

Cheers,

Peter
 

Watch MrExcel Video

Forum statistics

Threads
1,109,424
Messages
5,528,682
Members
409,830
Latest member
KT50

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top