+ Reply to Thread
Results 1 to 6 of 6

Excel table with different formula in first line

  1. #1
    Registered User
    Join Date
    08-23-2020
    Location
    Austria
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Excel table with different formula in first line

    Hello guys,
    I have a small Excel issue and I hope you can help me.
    I have a fomatted table with formulas in it. The plan is to have the first line different because there is no data in the line above (this is the headline). For all other lines, the formula should link to the upper line. The problem is, that the formula will not be copied automatically because this line is different, in the table on the right side, where all formulas are the same, it worked. Any idea how to solve this?
    excelprob.JPG

    Thank you very much!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,758

    Re: Excel table with different formula in first line

    For the first row, use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-23-2020
    Location
    Austria
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Excel table with different formula in first line

    Thank you very much, that worked great!
    But what happens if I need a completely different formula in the first line? Is there a way to protect this somehow and still use the autoformulas in the following lines, from the 2nd line?
    Thanks!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Excel table with different formula in first line

    E5=sum($D$5:$D5)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,758

    Re: Excel table with different formula in first line

    You're welcome. Thanks for the rep.


    To the rider question: short answer, no, NAFAIAA. You probably need to rethink your formulae.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Excel table with different formula in first line

    You could use:

    =IF(ROWS(INDEX([Important Data],1):[@[Important Data]])=1,MyFirstRowFormula,MyOtherRowsFormula)

    Replace MyFirstRowFormula and MyOtherRowsFormula as appropriate.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Auto copy formulas to next line in Excel table
    By jcmckeon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2018, 10:55 AM
  2. [SOLVED] Formula for Copying Line From One Table, to Another
    By weeble501 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2018, 10:17 PM
  3. [SOLVED] How do you use a macro to add an extra line at bottom of excel table
    By gillcork22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2017, 01:42 PM
  4. [SOLVED] Excel Table Help Needed (if empty skip next line)
    By cemsultan in forum Excel General
    Replies: 2
    Last Post: 04-15-2016, 09:12 PM
  5. Replies: 3
    Last Post: 12-12-2014, 10:15 AM
  6. Automatically copy formula down when new line is added to table
    By justmatt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2014, 06:11 AM
  7. Import HTML table to Excel... without line breaks
    By amsgwp in forum Excel General
    Replies: 7
    Last Post: 08-02-2013, 02:14 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