Excel Hack: Copy Formula Without Changing Cell References (or Without File References)

Поделиться
HTML-код
  • Опубликовано: 21 фев 2018
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Are you struggling with copying Excel formulas without changing cell references? This video is perfect for anyone who needs to copy formulas in Excel while keeping the original cell references intact.
    It's especially helpful if you're dealing with a mix of relative and absolute references. Our expert guides you through a practical example, showing you how to maintain these references even when copying complex formulas across different cells and ranges.
    Get access to the full Excel Essentials Course 👉 www.xelplus.com/course/learn-...
    ✨ What You'll Learn:
    ▪️ The common challenge of copying formulas in Excel without altering cell references.
    ▪️ A step-by-step tutorial using a sample dataset to illustrate the process.
    ▪️ An efficient method to copy a range of formulas while preserving the original cell references.
    ▪️ How to use the Find and Replace function (Ctrl+H) in a creative way to achieve this.
    Excel default behavior is to adjust the cell references when you copy a cell and paste to another one. You can choose to fix the cell reference by using the dollar sign ($). A $ for the row number, fixes the row and a $ on the column number fixes the column.
    You might however need to copy a set of formulas that have relative references from one location to another or from one file to another and keep the existing cell references. This video shows a very simple trick you can use.
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #Excel

Комментарии • 663

  • @LeilaGharani
    @LeilaGharani  5 месяцев назад

    Discover more practical Excel tricks like the one in this video by joining our full "Excel Essentials" course here 👉 www.xelplus.com/course/learn-excel-essentials/

  • @jorisvanh.9274
    @jorisvanh.9274 2 года назад +20

    I'm shocked copying exact formulas to another location is not one of the basic functions of Excel. Thanks for this workaround!

  • @justinfazzio
    @justinfazzio 4 года назад +45

    I love it when a little creativity results in a simpler solution than complexity. Thanks Leila!

  • @msheaver
    @msheaver 6 лет назад +4

    Holy cow, that is genius! For years I have used the F2-copy-paste song and dance, and I never thought of using the find and replace before. This is indeed a brilliant hack!

  • @born2bfit
    @born2bfit 5 лет назад +8

    That was amazing! I have been trying all day to get my references to stay the same, and in 30 seconds after performing this hack, you saved my the rest of my night! Cheers to you!

    • @LeilaGharani
      @LeilaGharani  5 лет назад +4

      I'm glad I could help with that.

  • @axifwalu
    @axifwalu 4 года назад +7

    4/10/2020: Using Excel from 6 Years now, still learning and thanks to you..!

  • @sebfox2194
    @sebfox2194 12 дней назад

    Thanks Leila, I was surprised that this wasn't a standard option in Excel, but your workaround has saved me a lot of time.

  • @SmeetGajjar
    @SmeetGajjar 4 года назад +7

    This worked perfectly in 24,875 cells !! 😂
    I have been trying to copy Table from one workbook to another, but it was pasting link before formulas.
    After being tired i searched on Google and got your video, that made everything perfect within minutes...
    Thank you so much !!

  • @tonyman1969
    @tonyman1969 5 лет назад +19

    Great advice. So simple but finding the solution was not intuitive at all. Thank you for the video.

  • @johnshambra8421
    @johnshambra8421 2 месяца назад

    That’s a super slick trick with the find and replace to get rid of those sheet references. As usual, thank you so much.

  • @aarinisles
    @aarinisles 3 года назад +4

    For sheets with a lot of calculations that I may need again somewhere else I use Show Formulas and copy all the formulas and paste in a text editor, (I like Notepad ++). Then they are available whenever I need them. This also works if you want to copy the whole sheet with text and whatever else is there. When you paste that from the text editor use Format Painter with the original sheet and apply to the new sheet.
    I have found it really useful in a number of ways beyond the above to copy and paste formulas in a text editor. Just thought I would throw that out there.

  • @anthonyajibolaomoruyi8054
    @anthonyajibolaomoruyi8054 Год назад +2

    What a simple but very smart and effective trick, thank you Leila.

  • @stefanogattoCH
    @stefanogattoCH 4 года назад +3

    Thank you Leila! And this trick also works when the equal sign is used in the middle of the formula too! (e.g. =IF(A3=300,1,4) )

  • @MrLyricsRomania
    @MrLyricsRomania 3 месяца назад

    You literally saved me from a mental breakdown. I want to thank you and wish you all the best things in life!

  • @thirentpx
    @thirentpx Год назад

    You are a Genius !!!....I have a huge spreadsheet with hundreds of unique formulas...This is just brilliant

  • @junkieSaint
    @junkieSaint 9 месяцев назад

    You can't imagine how much time it just saved for me and with just so simple a trick. Thank You!

  • @karnkarnkarn
    @karnkarnkarn Год назад

    been doing this trick
    and also cut part of it, paste and drag to expand to do this similarly.
    I didn't mean to compare anything to you.
    You are ways more super inspirational. :-)

  • @radicholakov9588
    @radicholakov9588 5 лет назад +4

    I like the find/replace technique a lot. Besides moving the formulas I find it quite useful when working on a bit more complex formula that return the result in a single cell.
    I wanted to calculate workdays (Mondays to Fridays) count and I was having some errors in the result when trying to just directly write it in one cell, however when braking down each element into single cells, combine it all and replace I got it done. :)
    find / replaces:
    end -> end date reference
    start -> start date reference
    magic -> =
    Guess there might be a build in function for that, but here is my formula:
    magic(WEEKNUM(end,2)-WEEKNUM(start,2))*5+IF(WEEKDAY(start,2)

  • @GeekTheGrey
    @GeekTheGrey 2 года назад +1

    So simple - and yet this one thing has been bugging me for YEARS!!!! Thanks so much! I knew I should have looked for this before now!!

  • @JNguyenKnight
    @JNguyenKnight 6 лет назад +1

    OMG. Simply genius. I just got done doing all of that by hand just earlier today. Thanks for the tip. I'll certainly remember that for the next time.

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Sorry it came too late - but yes - for next time :)

  • @helenasvensson6747
    @helenasvensson6747 5 месяцев назад

    Wonderful Leila! I have struggled many times copying and pasting manual... Even if the video is 4 years old it will create magic for me! :-) Thanks!!!

  • @shubhsjbp
    @shubhsjbp 5 лет назад +3

    Wonderful, I have never thought of something that intuitive !! It saved almost 2 hours of my time where I was replicating an entire sheet into a power query !!

  • @ibricj
    @ibricj 4 года назад +1

    WOW! This worked. Incredible. Thank you so much! Saved me a couple hours.

  • @michalsadlowski1938
    @michalsadlowski1938 3 года назад +3

    So simple, Yet so amazing! Thank you!!! Saved like 5 hours of working for me!! :D

  • @user-to5wg9pc8w
    @user-to5wg9pc8w Год назад

    You are a real blessings to me. I can't tell how this site has been of a great importance to me in my excel lessons, just keep it up! 😍😍

  • @pravinshingadia7337
    @pravinshingadia7337 4 года назад +2

    You're amazing! Videos are quick to watch but have lots of clever tips to make life easier with spreadsheets. Keep them coming.

  • @sparkyinwa
    @sparkyinwa 5 месяцев назад

    I am so thankful,, i was looking for a way to copy formulas from one sheet to another without going one at a time, cell by cell, fighting the editing mode function. you might want to re do this video looking at pasting between workbooks.

  • @Nicholi2
    @Nicholi2 2 года назад

    Just used the notinfile method to make 5616 substitutions for a work file. Saved me a lot of time. Thanks for this idea.

  • @sreekanthreddy8168
    @sreekanthreddy8168 6 лет назад +1

    You are simply digging the hidden treasures of excel and spreading them to world👏👏

  • @user-so6dr9pv1o
    @user-so6dr9pv1o 4 месяца назад

    Fabulous! Thank you. This is should be a basic function in Excel. You have saved me a lot of time and effort!

  • @Antonied90
    @Antonied90 5 лет назад +13

    Use =FORMULATEXT(cell); copy paste the result as value into the same cell - this will return the string of the original formula; use find and replace to replace the "=" with the same "=" this forces the cell to treat the string as formula - voila. I think its a bit shorter than the one suggested in the video but i like it more because it seems more sophisticated.
    You can do _AMAZING_ things with FORMULATEXT - like for example manipulate/change multiple formulas by treating them as strings; using LEFT&VLOOKUP&RIGHT to omit the reference and insert a new one and then at the end just select range and replace "=" with "=" - super clean

    • @LeilaGharani
      @LeilaGharani  5 лет назад +4

      I like your suggestion! I use FormulaText during training sessions so people can easily read the formulas. I like how you can apply here too. Thank you for the suggestion.

    • @SolidSnake59
      @SolidSnake59 5 лет назад +1

      Doesn't work for me though.

    • @gorflunk
      @gorflunk 5 лет назад +1

      To get this to work, select the cell(s) and then right-click and hold the edge of one of the selected cells and drag it/them to the right slightly and then back to their original location and release. A dialog box will appear. Click on Paste Here as Values Only and now you will see the formula(s) in the cell(s) as a text string. Use the keyboard shortcut Alt+A+E to open the Text to Columns wizard, then simply click on Finish and voila! your text string(s) are now formulas.

    • @whip_it
      @whip_it 10 месяцев назад

      worked for me thanks

    • @sebfox2194
      @sebfox2194 12 дней назад

      This method only seems to work one cell at a time though, rather than copying blocks of multiple cells containing formulae whilst maintaining the absolute cell references.

  • @davidjaggard
    @davidjaggard 2 года назад +1

    So creative, and saved me about 6 hours. THANK YOU!! LEILA FOR PREZ!

  • @Bboydu78000
    @Bboydu78000 2 года назад +1

    You just saved me hours of modelling ! Thank you so much !!

  • @spqroma
    @spqroma Год назад

    Thanks a lot for this hack! I never thought it could be so easy.

  • @esadaddy
    @esadaddy Год назад

    I been looking for this for so long....Thank you so much..

  • @wayneedmondson1065
    @wayneedmondson1065 5 лет назад +2

    Hi Leila.. cool trick. I tried some of the ones below suggested by others (=FORMULATEXT() and copy to Notepad). While some of the others work, I like your solution the most.. everything done from CTRL+H / Find and Replace. If needed often, it could easily be automated with a Sub and a button on the worksheet or the QAT to do the first replace of "=" with a placeholder and then switch it back in reverse. Excellent! Thumbs up!

    • @LeilaGharani
      @LeilaGharani  5 лет назад +2

      Thank you Wayne. There are always great suggestions in the comments :)

  • @jmorenocci
    @jmorenocci 2 года назад +1

    Oh my goodness!!!! Thank you so much! This just saved me hours on this late night I'm already working!!!

  • @frachiar4444
    @frachiar4444 2 года назад +1

    great trick :-) I use sometimes the combination CTRL+' which copies the formula above, without changing references. Or CTRL+" which copies only the result of the formula above. But they work only with one formula at a time. Your trick instead is useful in many cases, thank you 🙂

  • @andrewmoss6449
    @andrewmoss6449 6 лет назад +6

    This is really useful. I personally have the Kutools add-in which makes doing an identical copy and paste a lot easier. But for those who don't, it's good to know there's a way. I do think Microsoft should consider including the ability to do this in Excel because there's certainly been many times I've needed to.

    • @joeanderson444
      @joeanderson444 5 месяцев назад

      With people paying $49.00 without complaint for add-ins in an already expensive Excel, I don't see it happening!

  • @spunjbom
    @spunjbom 5 лет назад

    Great tip! What I do is hit Ctrl ~ then I copy them and paste to Word, copy from Word, then I paste them back to Excel.

  • @buzincarl
    @buzincarl 8 месяцев назад

    I never actually ever thought about replacing the = sign with a letter, i just use X, this has saved me hours of calculations in my head

  • @williamcurto3584
    @williamcurto3584 4 года назад +1

    I use ASAP Utilities for these kinds of things....most valuable Excel add in I've ever come across. Been using it since mid-2000's. It's free for home use, but I believe in it so much that I've paid for it to use at work.
    Your example, Leila, is a nice easy way around though.

    • @jgneolardo8875
      @jgneolardo8875 4 года назад

      I use ASAP as well, William, and yes it's amazing! I'm wondering why though CUT and paste wasn't mentioned in this video, as that is pretty simple, too?

  • @texproindustries2615
    @texproindustries2615 5 лет назад

    I am an Excel lover. I need to work daily on excel. I also check your links which is more useful in my. Professional, most of it I had applied. With your help I used to impress everyone in our monthly project meet. I will define you as "MAKING THE IMPOSSIBLE A POSSIBLE TRICKY HEAD". Am still learning from you. You are just unique than others who post about Excel.
    Well myself Sarath Prabhakar from India. Am into garments manufacturing field. It will so thankfull if my files gets fine-tune, and I am working on it with the help of you.

    • @LeilaGharani
      @LeilaGharani  5 лет назад +1

      Thank you. That means a lot from another Excel lover :)

    • @texproindustries2615
      @texproindustries2615 5 лет назад

      Hi Gharani, thanks for your valuable reply, which I never expected. Well I like to ask you is there any video where all the formulas are applied in one single sheet which will be helpful for me to apply as many as possible. As my office work sheet extend till "HS" column a lengthy process is used under one item. Thank you.

  • @geoffbarton8261
    @geoffbarton8261 2 года назад

    Awesome Leila. Speeds up the job significantly!

  • @GiteshBajaj
    @GiteshBajaj 4 года назад

    Nice trick...
    I required it many time, but didn't know how to do..
    Thx

  • @johnborg6005
    @johnborg6005 6 лет назад +1

    Thanks Leila. Great Trick. This helps alot, cause what I used to do is after I activate the formula with the F2 key, I put a space before the = sign and copy anywhere I want, then I remove the space. Your method is better and faster. Thanks again. :)

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Glad this helps John! Thanks for your feedback.

  • @aleksiderzon2344
    @aleksiderzon2344 3 года назад

    This Hack basically saved me Hours of Work!!! Thank you so much!

  • @ziggle314
    @ziggle314 3 года назад +1

    Great exposition. Very useful. Thanks!

  • @ChunkTheShredder
    @ChunkTheShredder 9 месяцев назад

    This solution still works in late 2023 and was really helpful, thank you, saved me hours!

  • @jayar98
    @jayar98 2 года назад

    I love you so much! Been fussing what to do!! This helped me so much! 😭😭😭💯💯💯

  • @Dragoninja
    @Dragoninja 4 года назад +1

    So cool, I didn't know that u could use find & replace in this way. Most of the time I used find & replace to change the data, not the formula & still be able to keep the same cell references.

    • @LeilaGharani
      @LeilaGharani  4 года назад +1

      Yeah, it's a hidden feature that many don't know of.

  • @ashishjain1836
    @ashishjain1836 5 лет назад +2

    So intuitive and simple. loved it thanks

  • @savcam1
    @savcam1 4 года назад +1

    Thank you so much for sharing this with everyone! Such an intuitive trick but it certainly never occurred to me. You are great!

    • @LeilaGharani
      @LeilaGharani  4 года назад

      My pleasure. Glad you something new.

  • @kirodonX
    @kirodonX 2 года назад

    Leila you are a lifesaver, thank you for this hack!!!

  • @BattleBladeWarrior
    @BattleBladeWarrior 4 года назад +1

    Holy cow Leila, I spent 7 hours trying to write up formulas in excel for one of our spreadsheets at work, and NOTHING was working. Then I found your channel. . . and between your video on sumifs/countifs and this one, I was able to write all the working code within 20 mins. Thank you so much for this. You're a gem :D

    • @LeilaGharani
      @LeilaGharani  4 года назад +1

      That's great! I'm happy the tutorials were helpful.

  • @sachinrv1
    @sachinrv1 6 лет назад +1

    That's a useful quick trick. Thanks for sharing.
    Leila; as I have observed many a times people don't know (or even if they know tend to do it long way) that in Excel one can even change the ranges or cell reference given in the formula which already exist by using FIND AND REPLACE. Like for e.g. by mistake one types =Sum(a1:a5) instead of =Sum(b1:b5), herein one can easily replace "a" with "b" to have sum of range b1:b5.

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      You're absolutely right! It's not obvious to most that you can use find and replace in formulas as well....Thank you for your comment & your support Sachin.

  • @krishnamaruthi
    @krishnamaruthi 8 месяцев назад

    Thanks Leila, Very useful and time saving.

  • @runwiththerunners8152
    @runwiththerunners8152 3 года назад

    Thank you so much I love your postings you are amazing in all ways

  • @ycelrey7652
    @ycelrey7652 4 года назад +2

    Thank you so much. I've saved hours of tedious pressing of f4

  • @monte4955
    @monte4955 6 лет назад +1

    Great Video Leila. This is a really good tip. Thanks for taking the time in making this video. Keep up the great work. I enjoy watching the great insight you have with excel. 👍👍👍

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      I'm glad you find the videos useful Monte. Thank you also for your continuous support of my channel!

  • @hosschin9290
    @hosschin9290 5 дней назад

    Not how I expected to fix the issue, thanks for the tip!

  • @hirandanushka1890
    @hirandanushka1890 5 лет назад +4

    Thank You Gharani. It's work. U saved my time :)

  • @axel0143
    @axel0143 3 года назад +7

    3:00 for copying multiple cells without changing cell references.
    Tl;dr: Use find and replace to change the "=" in all formulas of the cells to e.g. "@", then copy the cells in replace back to "=".

    • @danatello8489
      @danatello8489 10 месяцев назад

      Watched this on my browser, so I wasn't logged in, but I made sure I did so just to thank you. Your sacrifice was not in vain.

  • @aminzakariah2891
    @aminzakariah2891 2 года назад

    That is actual a genius solution! Thanks!

  • @berkleybrianne
    @berkleybrianne 4 года назад

    Hi Leila, I love your videos! They have helped me so much. I have a question. I used this method and recorded it to create a macro in vba to get rid of unwanted sheet references when I copy and paste data from sheet to sheet; however, I now have phantom links that I don't know how to get rid of. I now am prompted to update links to another file everytime I open original file. Is there a way to fix this?

  • @mohamedaminearifallah1613
    @mohamedaminearifallah1613 2 года назад

    Thanks leila, your videos are very useful

  • @michaellucas7177
    @michaellucas7177 3 года назад

    OMG I love your voice 💓 as much as your awesome insights in Excel!!!!

  • @1gopalakrishnarao
    @1gopalakrishnarao 6 лет назад

    Big Salute to my favourite beautiful and Excel Teacher. This type of tricks please post often Madam. Waiting eagerly to learn more and more from you. You are the treasure house of Excel tricks.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome Gopala! Glad to hear you like these type of tricks. Will make sure to post anything interesting I come across or get asked during the seminars. Thank you so much for your continuous support.

  • @angelmcr01
    @angelmcr01 2 года назад

    Great tip! This really saved me some time today

  • @Jadoree.Online
    @Jadoree.Online 5 месяцев назад

    3 year could not find an easy way . wow it's so simple thank you

  • @bobbywong188
    @bobbywong188 2 года назад

    Much appreciated, it’s really helpful.

  • @ExactProBi
    @ExactProBi 6 лет назад +6

    A very good tip can save a considerable amount of time! Thanks

  • @kasperfurbo668
    @kasperfurbo668 3 года назад

    Thanks a lot. will use this onwards!

  • @lutherlessor4029
    @lutherlessor4029 7 месяцев назад

    This was so helpful! Thank you, Leila!

  • @runningwithsavage
    @runningwithsavage 6 месяцев назад

    Amazing video as always. Thank you.

  • @DanielMatthews2000
    @DanielMatthews2000 4 года назад

    That's a great trick! Well done. Thank you.

  • @mavicmanuel2809
    @mavicmanuel2809 2 года назад

    thank you! this saved me hours of work.

  • @chinchenming254
    @chinchenming254 4 года назад +1

    That's a great trick! Helps a lot. Thanks

  • @aviellsegall1190
    @aviellsegall1190 4 года назад

    Exactly what i needed a minute ago !...WowThanks.

  • @TheSighlent1
    @TheSighlent1 2 года назад

    Great explanation!! Thank you!!!

  • @umairshahid8837
    @umairshahid8837 2 года назад

    loved this simple solution, thank you, GOD bless you.

  • @savioseona
    @savioseona 4 года назад

    Wow...definetely an out of the box solution.

  • @jtiller1223
    @jtiller1223 Год назад

    Thank you. Control H fixed all my problems

  • @arshaduiislam9638
    @arshaduiislam9638 5 лет назад

    Leila thank you so much for this tip, it has saved me so much time. Your a star!

  • @varchar3587
    @varchar3587 3 года назад

    Wow so simple and easy but I didbnot though about it. THANKS !!!

  • @proyectosamurai
    @proyectosamurai Год назад

    Simply and amazing, that's what I was looking for.. thanks for sharing

  • @ict4dsoscvsl244
    @ict4dsoscvsl244 2 года назад

    You're a life saver. Thank you very much.

  • @aliciaprice2463
    @aliciaprice2463 Год назад

    This is BRILLIANT and saved me endless hours of work

  • @user-fu4kg2zx4h
    @user-fu4kg2zx4h 5 лет назад +1

    Saves a lot of time, thanks!

  • @Ninjahat
    @Ninjahat 5 лет назад +1

    BEAUTIFUL trick! Thank you so much - it has saved me for doing so much work

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      You're very welcome. I'm glad it was helpful.

  • @y036d
    @y036d 2 года назад

    Great tip, thank you very much!

  • @rikhisahay
    @rikhisahay 2 года назад

    Love the hack! Thanks for sharing.

  • @ozgurelciseven1189
    @ozgurelciseven1189 2 года назад

    Super simple and neat, thanks!

  • @doctorhannah_
    @doctorhannah_ 8 месяцев назад

    Brilliant. Thank you! I'm surprised there's not a way to do this that's built in.

  • @mylo5410
    @mylo5410 5 лет назад +1

    Thank you thank you! This is a life saver

  • @venugopal7161
    @venugopal7161 4 года назад

    Ma'am we are anxiously for your valuable videos on Excel.Try to do more and more videos on excel too.

  • @iknow3335
    @iknow3335 4 месяца назад

    u have just saved my life, ty so much

  • @zachhuett7458
    @zachhuett7458 4 года назад

    Thank you for this helpful video!

  • @udawattagegunatunga9702
    @udawattagegunatunga9702 4 года назад

    Many thanks for this video. So helpful. Have done a video for copying conditional formatting?

  • @arbah6335
    @arbah6335 2 года назад

    Thank you so much! This has saved my sanity!!