Openxlsx Add Formula to Excel Cell using R

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 17

  • @aliramadan7425
    @aliramadan7425 4 ปีที่แล้ว +1

    This is really helpful. Thanks Mark!

    • @CradleToGraveR
      @CradleToGraveR  4 ปีที่แล้ว

      Have you started using this for something practical yet?

    • @aliramadan7425
      @aliramadan7425 4 ปีที่แล้ว

      @@CradleToGraveR Hi Mark, Yes. sharing some of my code: (Thanks to your Tutorials)
      library(openxlsx)
      wb

  • @davyblack5625
    @davyblack5625 4 ปีที่แล้ว +1

    Question: I am working through a much larger data set with more columns, and want to paste a formula for each column without individually specifying the reference letters for the column. Is there a way to paste a formula across multiple columns where the range will adjust with the new column similar to dragging the formula across the columns within excel?

    • @CradleToGraveR
      @CradleToGraveR  4 ปีที่แล้ว +2

      Sort of, I'm on mobile now so I can't look it up easy. Instead of using a range like "A2" yo would set a cell by row, col number, which you could put in a loop because they are numbers. Much easier than dealing with letters.

  • @72342823
    @72342823 3 ปีที่แล้ว +1

    Thanks man. Help me a lot.

    • @CradleToGraveR
      @CradleToGraveR  3 ปีที่แล้ว

      Awesome. Hope it worked out for you.

  • @Dylku123
    @Dylku123 3 ปีที่แล้ว

    You are a life saver!

  • @alihariti9919
    @alihariti9919 ปีที่แล้ว

    Thank you,
    I followed your tutorial step by step,
    I used a different formula,
    formula

  • @alvaromorales6828
    @alvaromorales6828 4 ปีที่แล้ว

    Hi, thank you.
    Is there some function finding o selecting cell by being the first or last, when you apply "ctrl + (->,

  • @sergiobravo3095
    @sergiobravo3095 2 ปีที่แล้ว

    Thanks so much for this. It's extremely helpful. However, I had an issue when reading back the excel. If I insert a formula from R it seems to work when I open the Excel file, but when I open it from R the value appears as NA. Do you know how I can fix this? Thanks!

  • @estaykylyshbek8347
    @estaykylyshbek8347 3 ปีที่แล้ว +1

    Great video!!!

    • @CradleToGraveR
      @CradleToGraveR  3 ปีที่แล้ว

      Glad it helps. I'll be making more soon. Thanks for the compliment.

  • @rikkesalboelbrandt
    @rikkesalboelbrandt 4 ปีที่แล้ว

    Can you show how one might make conditional formatting in the excel sheet. Let's say you wanted to change the color of a row based on user input in the excel sheet. I have a check-mark column in my sheet, where I would like the sheet to react to user entering an 'X' in the column.

    • @CradleToGraveR
      @CradleToGraveR  4 ปีที่แล้ว

      I will try to do some more tutorials on openxlsx. There is so much that you can do with this package!

    • @agentmor
      @agentmor 4 ปีที่แล้ว

      Thank you!

    • @CradleToGraveR
      @CradleToGraveR  4 ปีที่แล้ว

      So, your asking more of an interaction scenario. This is a start, but far from what you want to do. th-cam.com/video/lUOv2IHVRl4/w-d-xo.html