+ Reply to Thread
Results 1 to 9 of 9

Insert output of the formula in a different cell

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Insert output of the formula in a different cell

    I have a formulas in cells of row 6 that checks if the same column row 8 has a value above 0. If true I want it to add "x" columns (entered in row 7 of the same column) and enter the result of the formula from row 6 to cell address ( 9, column + "x").
    example
    formula is in B6
    B8 has a value above 0
    B7 has 3 (as number of columns to be added )
    so column of target cell would be B+3 = E
    and Row would be 9
    Which is E9
    so the result of the formula in B6 will be displayed in E9 and the result of the formula in C6 will be displayed in F9

    Any help would be highly appreciated.
    Last edited by Needy; 04-09-2012 at 07:28 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert output of the formula in a different cell

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-08-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Insert output of the formula in a different cell

    I am sorry here is a display of the section of the sheet and what is expected.Excel putting result of a formula in another Cell.jpg

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert output of the formula in a different cell

    I asked that a workbook be uploaded not a picture - to see why we ask this see the suggestions in the forum rules.

  5. #5
    Registered User
    Join Date
    04-08-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Insert output of the formula in a different cell

    I am new here and dont know how to attach a file.
    Lets just delete the post. Thanks.
    Last edited by Needy; 04-09-2012 at 09:34 AM. Reason: typo

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert output of the formula in a different cell

    Hi,

    Just attach the file as you did your picture. The FAQ indicates how - see http://www.excelforum.com/faq.php?fa...b3_attachments

  7. #7
    Registered User
    Join Date
    04-08-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Insert output of the formula in a different cell

    Attached is the excel file for reference.
    Thanks
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Insert output of the formula in a different cell

    In C10

    =SUM(IF(COLUMN()-$B$7:C7-COLUMN($B$7:C7)=0, $B$8:C8*$B$9:C9,0))
    entered as an array (CNTRL SHFT ENTER instead of ENTER. You'll see brackets {} around your formula)
    Drag formula to the right.
    Does that work for you?
    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

  9. #9
    Registered User
    Join Date
    04-08-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Insert output of the formula in a different cell

    Thanks ChemistB
    It works like a charm.

+ 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