+ Reply to Thread
Results 1 to 17 of 17

Need to paste relative and absolute formula...I think...

  1. #1
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Need to paste relative and absolute formula...I think...

    Does anyone know if this is possible?

    I have a multisheet workbook that I am trying to copy formulas with having to keep manually referencing a certain sheet.

    On sheet named "data", I have a formula that is written B4=Jan!B12. It is just equals what ever I input into cell b12 on the January sheet. I need to paste this formula on the same "data" sheet but in cell B39. However I also need it to increase by the next cell down in sheet January. So it should look like this B39=Jan!B13.

    I hope I explained this ok...

    Thanks for the help!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to paste relative and absolute formula...I think...

    It took you almost 8 years to post an question

    There are several options.

    1) CTRL + H seek =jan replace by febr

    2) Work with a celreference (e.g. A1) to name the month

    3) add all month on 1 sheet (my favourite)

    You don't add an excel file without confidentional information, so I can't show you.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    That is some funny stuff! I think I must have joined the forum when I was working for another company. At the time I was using excel quite a bit. I had forgotten I even was registered until today!

    Anyway...

    I am still looking to reference the January sheet I just need the next cell down in column B row 13.

    When I paste the formula from the "Data" sheet, cell B4 to "Data" sheet B39 it wants to paste the infomation from "january" sheet 34 rows below the cell I need. I am familiar with the $ function. But that holds the formula at "=Jan!B12" I need it to read "=Jan!B13".

    I will mess around with what you are recommending and see if I can make sense of it.

    Again not sure if I am explaining clearly.

    Thanks.

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    Is there anything in the cells between B4 and B39? or is this going to be a consistent spacing for additional copies of the formula (ie is B74 going to reference Jan!B14) ?
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    Yes there are formulas in between B4-B39.

    Currently this is how I have it set. All of this because of string count limit! Anyway...

    Data Sheet:
    B4=Jan!B12
    B5=Jan!B19
    B6=Jan!B26
    B7=Jan!B33
    and so on until B34 where the last Jan!85 is.

    Most of these increase by 7 excepting where the weeks change within the monthly sheets. I have headings and titles that separate the weekly brackets so when it goes to the next bracket(week) it is separated by more than 7 cells.

    Now I would like to copy or create a formula that would take the formulas from B4...etc..etc.
    and paste it into:

    B39=Jan!B13
    B40=Jan!B20
    B41=Jan!B27
    B42=Jan!B34
    and so on......

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    Okay, some sort of EXAMPLE workbook would definitely help here, it sounds do able, but I have no desire to try to re-create your work book to come up with a solution....I have no problem tweaking and experimentint with formulas to make what you want happen, I just don't see it as my responsibility to create a wb to do it in,

    Add a File - click advanced (next to quick post), scroll down until you see "manage attachments", click that and select "add files" (top right corner). click "select files", find your file, select file, click "upload", when the file shows up at the bottom left click 'done"(bottom right). click "submit reply"(remember the 1 MB limit, you may have to crop your file down to get it to a size that can be uploaded...)

  7. #7
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    Dredwolf,

    Uploaded as is. After seeing this maybe I should explain a bit more so you know what is going on. Or maybe it doesn't matter. Basically the "Monthly-Yearly" sheet is totaling/averaging all of the data from the individual month sheets. However as you will see some of the formulas are pretty long on that worksheet. So I added the "Data" sheet to consolidate, so I could use the "(A1:A20)" type of formula instead of (A1+A2+A3 etc....)

    The upper box labeled TIME on the data sheet was done by literally going to each individual box of every month. It was a pain. Hence the reason for wanting to copy and paste...

    Sorry about not uploading sooner! Do appreciate your time.

    Lydian
    Attached Files Attached Files

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    okay,try this then:TriSports Fitness Journal.Skins.Sol1.xls
    had to go with UDF(s) to accomplis it, but I think it should work for you
    Please Login or Register  to view this content.
    To Isert code into another Workbook :
    goto VBA Editor (Alt+F11)
    Insert -> Module
    Copy above code and paste into new module
    Save and close editor

    Hope this helps

  9. #9
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    Ok I got as far as saving and closing the editor, now how do I run it? Apologize in advance...

    I see F5 is running it I think...but do I need to be in the cell I am wanting the formula in?

    I have tried clicking on B39 in data sheet then hitting f5. A window pops up asking for a reference, if I put b4 in there as the reference cell then hit special and select just the formulas it just seems to highlight the entire upper "time" section.

    Tried typing in the Goto portion of the window when I hit f5 and it won't let me input or select a range.
    Last edited by Lydian; 01-09-2013 at 10:45 AM.

  10. #10
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    Dredwolf,

    I think I am getting closer. First off I had to save the new workbook as a workbook with macros enabled. Then I realized I had to use the Insert Function and select user function. I noticed there are 3 different functions that show up. Using the first one the CopyAdd, I am able to insert it into cell B39, have it reference B4 then add 1 which does work. It looks like this B39=CopyAdd(B4,1). The only thing that is not happening is when I make a change to the January worksheet, it is not updating automatically to the data sheet. I have click in the cell that is suppose to have changed then hit enter and it does change.

  11. #11
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    hrmm..checking into it

  12. #12
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    Please Login or Register  to view this content.
    Add the Bold Red line of code Above to CopyAdd,Save, then Re-enter the formula into B39, now it should auto-update, and you should be able to Drag/Copy the formula down and/or across (note-, for your next group (B74 start I think), you would use CopyAdd(B4,2) etc.)

    Hope this helps

  13. #13
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    AWESOME!!!!!! Seems to be working great! I will mess around tomorrow and let you know how I make out...

    Thank you!!!!!!!!!!!!!!!!!!!!!

    Lydian

  14. #14
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    You are welcome !

  15. #15
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    Indeed all is well...In fact well beyond!!!

    Thanks again Drefwolf for all your help!

    Now i am trying to figure out what other information I can have this baby calculate for me.

  16. #16
    Registered User
    Join Date
    03-03-2005
    Posts
    9

    Re: Need to paste relative and absolute formula...I think...

    Indeed all is well...In fact well beyond!!!

    Thanks again Drefwolf for all your help!

    Now i am trying to figure out what other information I can have this baby calculate for me.

  17. #17
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to paste relative and absolute formula...I think...

    You are welcome

+ 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