+ Reply to Thread
Results 1 to 17 of 17

Using another sheet like function

  1. #1
    Registered User
    Join Date
    03-28-2020
    Location
    Russia
    MS-Off Ver
    2013
    Posts
    5

    Using another sheet like function

    Hi!
    It is general question about Excel. No certain examples i can attach.
    I have 2 sheets. "Sheet 1" contains input data columns and result column. "Sheet 2" calculates result using many operations with input data. Is there any way to put data row by row from sheet 1 to sheet 2 and return results to sheet 1? See pic for more information.
    Excel.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Using another sheet like function

    Sorry, but if you cant describe it, how are we supposed to try and help you?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using another sheet like function

    Hi ctpexhih and welcome to the forum,

    I think you are going to need VBA code to do what you want. I think you could copy that range from sheet1 to sheet2 and then copy the result and paste it back to sheet1 using Values only. You'd have to do that many times. There might also be some trick where you would put in the row number from sheet 1 you want in your sheet2 cells and using Indirect() pull them over, but I think you'd still need to copy and paste them back. I'll think about this some more....
    Maybe some smart Guru can come up with a non-VBA solution.
    Last edited by MarvinP; 03-29-2020 at 12:51 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    03-28-2020
    Location
    Russia
    MS-Off Ver
    2013
    Posts
    5

    Re: Using another sheet like function

    There is an example of what i am talking about.

    Thanks MarvinP for the answer. I supposed there is no way without macros, but maybe guru knows some tricks.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Using another sheet like function

    what's the formula for the "hard calculations?"
    Ben Van Johnson

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using another sheet like function

    Hi ctpexhih,

    See if the attached makes your work a little easier. I created a row on sheet1 that copies down the rows from the above table based on a single cell (C20)
    You change the value in C20 from 2 to 16 and that rows numbers are copied down to row 21...

    NOW - Sheet 2 numbers are taken from Row 21 of Sheet 1. Sheet does it's calculations and gives answer in cell B26.
    On Sheet 1 in cell H21 is a formula that returns what is on Sheet2!B26 (Wow)

    Copy and paste the value only from H21 up to the correct row in column H and you can get answers pretty fast. No VBA just playing around...
    Almost Curcular Function from Other Sheet.xlsx << Click on this attached file to open and see what I did.
    I wonder if some Smart Guru can come up with something better?

  7. #7
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Using another sheet like function

    ctpexhih It have been already explained you here . Many of hard calculation can be done in one cell but you didn't want to show your difficult formulas. And as I see now you try to do the same mistake.
    Last edited by BMV; 03-29-2020 at 02:20 AM.

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using another sheet like function

    Hey Ben,

    He has those calcs on his second sheet. They are a bunch of different calcs from the numbers on row 1.

    Got any better Ideas that what I did below? I'd love to see them.

  9. #9
    Registered User
    Join Date
    03-28-2020
    Location
    Russia
    MS-Off Ver
    2013
    Posts
    5

    Re: Using another sheet like function

    Hi, MarvinP,

    Thanks for example!

    This is the best way to solve this without macros! Thanks for you help. I think I will use macros in my real application to do this stuff without copy-paste.

    It would be very useful if excel has standard formula like, for example: =INDIRECTCALCULATIONS(sourceCells; destinationCells; resultCell), where

    sourceCells - data should be taken from;
    destinationCells - data should be inserted to destinationCells from sourceCells;
    resultCell - cell the result of calculation should be taken from.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Using another sheet like function

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will provide the link below.)

    https://www.planetaexcel.ru/forum/in...message1046900
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Registered User
    Join Date
    03-28-2020
    Location
    Russia
    MS-Off Ver
    2013
    Posts
    5

    Re: Using another sheet like function

    Hi, AliGW,

    I have tried to add crosslink in my first message but I received a notification:
    The following errors occurred with your submission
    You are not allowed to post any kinds of links, images or videos until you post a few times.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Using another sheet like function

    Please see the last two lines of my post!

  13. #13
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Using another sheet like function

    off
    The following errors occurred with your submission
    You are not allowed to post any kinds of links, images or videos until you post a few times.
    Yes it's true. I have had the same even I inserted link to Microsoft docs in my firsts posts.

    By the way here I inserted link not because of cross posting but because of you on the wrong way.
    Last edited by BMV; 03-29-2020 at 04:12 AM.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Using another sheet like function

    @BMV - you should have used the report button to report the post.

    No new member with fewer than 10 posts is able to post links.

  15. #15
    Registered User
    Join Date
    03-28-2020
    Location
    Russia
    MS-Off Ver
    2013
    Posts
    5

    Re: Using another sheet like function

    Hi, AliGW,

    Please see the last two lines of my post!
    Of course I have read that lines. Just explain why I didn't insert the crosslink. Thank you.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Using another sheet like function

    Nonetheless, you should have told us that you had posted the question on another forum, even if you could not supply the link. Cross-posting should always be declared. Thanks for your co-operation in future.

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Using another sheet like function

    It is up to the OP to comply with a moderation, not other members, but thanks for the attempt

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 02-18-2015, 08:04 AM
  2. My function is checking based on Work Sheet Name, I need to change this function
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2015, 01:36 PM
  3. Replies: 9
    Last Post: 11-07-2014, 07:10 AM
  4. Sumif function using indirect function and data from different sheet
    By pronky007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 12:40 PM
  5. Replies: 15
    Last Post: 01-03-2012, 02:39 PM
  6. If/then LookUp Function or a Function to copy data for sheet to sheet
    By imdavenp85 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-26-2008, 10:21 AM

Tags for this Thread

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