+ Reply to Thread
Results 1 to 9 of 9

Incremental formula

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Wayne, PA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Incremental formula

    I am hoping I can get some help on a recent issue I ran into with Excel. I am trying to setup a formula that will perform an equation on 2 columns which is the easy part. My issue is when I try to copy the formula across it isn't updating the proper 2 columns. The data is on a separate worksheet from the rest of the data for formatting reasons. Below is an example of what I want and what I am getting.

    Example:

    Data Worksheet
    1 1 2 2 3 3 4 4

    Output Worksheet (Should be) (A1 + B1) (C1+D1)
    2 4 6 8

    Output Worksheet (What I am getting) (A1 + B1) (B1+C1) (C1+D1)
    2 3 4 5 6 7 8

    Please let me know if I missed something in the explanation or if something is unclear. Also sorry if this is an easy issue I tried to look around and messed around with offsets but nothing seems to work right.

    Thanks for any help on this.
    Last edited by Takau; 09-28-2011 at 11:46 AM. Reason: Question has been answered.

  2. #2
    Forum Contributor
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2007
    Posts
    122

    Re: Incremental formula

    If you could upload a sample spreadsheet, it would help in analyzing..

    Vinod

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Incremental formula

    There's probably a much easier way but in A2 dragged right

    =INDIRECT(CHAR(COLUMN()*2+63)&"1")+INDIRECT(CHAR(COLUMN()*2+64)&"1")

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Incremental formula

    Possibly?

    =SUM(INDEX($1:$1,1+((COLUMN(A1)-1)*2)):INDEX($1:$1,2+((COLUMN(A1)-1)*2)))

    copied across.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    09-28-2011
    Location
    Wayne, PA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Incremental formula

    I have attached an example of the setup.
    I removed my offset calculation since it caused more problems then it fixed but the equation I left in shows my overall goal.

    The equation is in J5-L5

    The daily checklist is the main worksheet that should show all the information after the equation is done and the CalcSheet should just be the reference data.

    Thanks again for your help and let me know if you have anymore questions.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Incremental formula

    Try:

    =IF((J3=CalcSheet!E1), INDEX(CalcSheet!$2:$2,1+((COLUMN(A1)-1)*2)+4)/INDEX(CalcSheet!$2:$2,2+((COLUMN(A1)-1)*2)+4) * 100, "Not Match")

  7. #7
    Registered User
    Join Date
    09-28-2011
    Location
    Wayne, PA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Incremental formula

    Quote Originally Posted by NBVC View Post
    Try:

    =IF((J3=CalcSheet!E1), INDEX(CalcSheet!$2:$2,1+((COLUMN(A1)-1)*2)+4)/INDEX(CalcSheet!$2:$2,2+((COLUMN(A1)-1)*2)+4) * 100, "Not Match")
    The first cell worked, but when I copied it over to the other cells it didn't jump 2 columns.

    =IF((K3=CalcSheet!F1), INDEX(CalcSheet!$2:$2,1+((COLUMN(B1)-1)*2)+4)/INDEX(CalcSheet!$2:$2,2+((COLUMN(B1)-1)*2)+4) * 100, "Not Match")

    The first part of the IF statement needs to also jump a column. =IF((K3=CalcSheet!F1)

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Incremental formula

    Do you mean?

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-28-2011
    Location
    Wayne, PA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Incremental formula

    Quote Originally Posted by NBVC View Post
    Do you mean?

    Please Login or Register  to view this content.
    Perfect that was exactly what I needed. Thanks for the help I'm not a huge excel person so Index's are new to me in an equation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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