+ Reply to Thread
Results 1 to 4 of 4

I need a formula that changes column automatic

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2016
    Location
    Norway
    MS-Off Ver
    Windows 8
    Posts
    2

    Question I need a formula that changes column automatic

    Hi
    I have a formula like this:


    =IF(A3="";"";SUM(Inndata!B$3:B$100))

    When I expand the formula down to the next cell I want it to look like this:

    =IF(A3="";"";SUM(Inndata!C$3:C$100))

    How is this possible? Please help

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: I need a formula that changes column automatic

    Try

    =IF($A$3="";"";SUM(INDEX(Inndata!B$3:AZ$100;;rows(a$1:A1))))

    Use relative reference for $A$3 i.e. A3 if you want it to change to A4 and so on if you copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    01-11-2016
    Location
    Norway
    MS-Off Ver
    Windows 8
    Posts
    2

    Re: I need a formula that changes column automatic

    Fantastic! thanks alot!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I need a formula that changes column automatic

    Hi and welcome to the forum

    One way - assuming you enter the formula in A4 is

    Formula: copy to clipboard
    =IF(A3="";"";SUM(OFFSET(Inndata!B$3:B$100,0,ROW()-4)))


    If not on row 4 then change the ROW()-4 bit to reflect the row it is on. e.g. if Row 10 then Row()-10....etc.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Copying formula .. automatic increment of column..
    By kundanlal in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-14-2015, 07:21 AM
  2. Automatic COPY and PAST entire Column to another sheet column
    By irfanfun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2014, 09:38 AM
  3. Need formula help with automatic monthly column coloring based on flexible dates
    By excellearning in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2013, 04:27 AM
  4. Replies: 2
    Last Post: 03-17-2010, 04:01 AM
  5. [SOLVED] Stacked Column Graph with automatic zero column removal
    By Niper in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-06-2010, 12:22 PM
  6. Automatic Formula for 1 column
    By nessadiaz in forum Excel General
    Replies: 4
    Last Post: 12-29-2008, 07:56 PM
  7. [SOLVED] Row & column automatic highlight
    By gcaramaliu in forum Excel General
    Replies: 2
    Last Post: 04-14-2006, 03:20 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