+ Reply to Thread
Results 1 to 4 of 4

Macro to apply a formula in a column if there are values in another column

  1. #1
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Macro to apply a formula in a column if there are values in another column

    Friends,

    I have around 50 columns in a sheet.

    First column (A) is having serial number. I need to apply a formula [i.e. =SUM(AF4-AB4) in column AT4:AT ]

    For example:

    If there are values in column A4 to A38, then the above formula to be applied in column AT4:AT38.

    If there are values in column A4 to A140, then the above formula to be applied in column AT4:AT140.

    If there are values in column A4 to A263, then the above formula to be applied in column AT4:AT263.

    It will be more better, if the result of those formulas are converted to values.

    Request your help.
    Last edited by acsishere; 01-31-2021 at 02:37 PM.
    Good friends are hard to find, harder to leave, and impossible to forget.

    acsishere.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Macro to apply a formula in a column if there are values in another column

    Maybe :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Re: Macro to apply a formula in a column if there are values in another column

    Thanks a lot Sir. It works fine.

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Macro to apply a formula in a column if there are values in another column

    You are welcome, thanks for marking the thread as solved and rep.points given.

    Regards

+ 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. quickly apply formula to subtract values in one column from another.
    By memunoz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2020, 08:46 AM
  2. [SOLVED] Apply VBA Script based on Text in one column and apply a formula in another column
    By vvincent in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2016, 09:19 PM
  3. Apply three colour gradient on column NEXT to column with values
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2014, 04:17 PM
  4. Apply a formula in a new column that pulls unique values from another column
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2014, 10:04 PM
  5. [SOLVED] Macro to apply formula to blank cells in a column is offset (sometimes)
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2013, 01:55 PM
  6. Formula/macro - Apply certain formula as per duplicate cells in column L
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2011, 12:28 AM
  7. Apply formula to entire column macro
    By aznprod517 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2009, 10:41 AM

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