+ Reply to Thread
Results 1 to 12 of 12

Do calculation in same coloumn for datas from various coloumns and save results

  1. #1
    Registered User
    Join Date
    09-30-2008
    Location
    Armenia
    Posts
    7

    Do calculation in same coloumn for datas from various coloumns and save results

    Hi all,

    Could you please help me with following:

    I'm using Excel 2003.
    I have three worksheets in my workbook:
    1. "Data" - to insert datas
    2. "Calculation" - to do calculation with datas
    3. "Results" - to save results of calculation.

    There are two columns in "Data" with simple numbers: column "A" and "B".
    My issue is to do calculation in column "A" of worksheet "Calculation" for datas in column "A" of "Data" worksheet and save results in column "A" of worksheet "Results" then do same calculation in same column "A" of worksheet "Calculation" for datas in column "B" of "Data" worksheet and save results in column "B" of worksheet "Result".

    I know this could be done using VBA but my issue is to solve this using only Excel's features.

    Attached you can find .xls file with simple example.

    Thanks in advance
    GMara.
    Attached Files Attached Files
    Last edited by GMara; 09-30-2008 at 05:34 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Why do you have to use the same cells in the calculation sheet? I doubt you can do it without VBA.

  3. #3
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Keep the calculation streams separate.

    Getting the different columns of data into the same calculation column is relatively easy, using the OFFSET function, or perhaps the INDEX function.
    Getting the results back into two separate columns is probably imposible.

    Why can't you simply copy the calculation function from Column A to Column B thus (in your example) Calculation B2 becomes:
    =Data!B2*Data!B2
    Results B2 then becomes:
    =Calculation!B2

    Mark.

  4. #4
    Registered User
    Join Date
    09-30-2008
    Location
    Armenia
    Posts
    7
    Hi StephenR,

    I have 60 columns in "Data" sheet and 15 columns for calculation of each of 60 columns in "Calculation" sheet, that's means that I have to have 900 columns. But in the way that I want to do calculations I will have only 15 columns in "Calculation" sheet.

    So that is the only reason.

    Best
    Marlena.

  5. #5
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    Attached is a spreadsheet that shows how to select just one of the data columns for the calculation (using INDEX).
    Just change the column number in Cell A1 of the calculation sheet.

    The only way I can think of getting the answers out is using copy and paste special values.

    Mark.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-30-2008
    Location
    Armenia
    Posts
    7
    Hi Mark,

    Thanks, but this is still no solution for my task.
    It seems I have to search new way to organize this

    Best
    GMara.

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    What's the objection to using VBA?

  8. #8
    Registered User
    Join Date
    09-30-2008
    Location
    Armenia
    Posts
    7
    The only objection is that my team leader wants me to solve this task without use of VBA.

  9. #9
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Perhaps if you point out that it is not possible without the use of VBA, he or she will change their mind?

  10. #10
    Registered User
    Join Date
    09-30-2008
    Location
    Armenia
    Posts
    7
    It is more difficult to cange his mind than to solve this task.

  11. #11
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Ho ho, I sympathise. If only one could reprogram one's boss...

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    As Stephen said, it is impossible to transfer your results to the result sheet from the calculations without VBA. The closest you can do is to automate the calculation sheet in the way that Mark@Work suggested (or something similar) and then to copy and paste special your 15 columns of data from your Calculation! to Results!

    You're going to end up with 900 columns in your Results sheet anyway. Why not skip the Calculations sheet and perform all your results in Results?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1