+ Reply to Thread
Results 1 to 5 of 5

Macro to compute Formula in last blank row in Col B onwardswhere there is a value above it

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,738

    Macro to compute Formula in last blank row in Col B onwardswhere there is a value above it

    I have tried to write VBA code to compute the % of recovered cases (row 4) vs total cases in row 2. The formula is in row 5


    Please Login or Register  to view this content.
    Your assistance is most appreciated

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

    Re: Macro to compute Formula in last blank row in Col B onwardswhere there is a value abov

    Hi Howard,

    If you change the way you keep your data, a Pivot Table can show the % Increase from one day to the next. You simply drag the value down a second time and show as. See the attached:
    Percent Increase of Corona Cases.xlsm
    See the example on https://www.howtogeek.com/407781/cal...h-pivottables/

    Now go wash your hands...
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,738

    Re: Macro to compute Formula in last blank row in Col B onwardswhere there is a value abov

    Thanks Marvin


    How did you get the table in Row 11 onwards in that format ?
    Last edited by Howardc1001; 04-18-2020 at 10:58 PM.

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

    Re: Macro to compute Formula in last blank row in Col B onwardswhere there is a value abov

    Hey Howard,

    To get your data into what I wanted, I used Power Query. It took about 30 seconds to convert it using UnPivot, a tool in PQ. I'm not sure you have Power Query in your version but you could. Watch: https://www.bing.com/videos/search?q...tail&FORM=VIRE for UnPivot. You won't need the last part.

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,738

    Re: Macro to compute Formula in last blank row in Col B onwardswhere there is a value abov

    Thanks for the link. It helped me a lot. I used Power Query a while back, but have not used it much. Will use it a lot more in future.

+ 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. [SOLVED] Macro to compute sumifs formula in last row containing data in Col A up to last col
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2019, 07:36 AM
  2. Macro compute
    By SBBmaster09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2016, 04:24 PM
  3. [SOLVED] Can't get macro to compute 5 day average to work?
    By enjoi2p0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 12:52 AM
  4. [SOLVED] Macro or formula to compute differences
    By bigband1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2013, 04:38 AM
  5. Macro to Compute Info if Cell is Red
    By ISUCyclones in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 11:11 AM
  6. Compute & Display Formula
    By manvinder_narang in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-27-2009, 11:08 AM
  7. [SOLVED] Formula won't compute
    By Mad Dog in forum Excel General
    Replies: 2
    Last Post: 01-26-2006, 02:30 PM

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