+ Reply to Thread
Results 1 to 9 of 9

Excel Adjacent Cell Formula

  1. #1
    Registered User
    Join Date
    01-07-2017
    Location
    uk
    MS-Off Ver
    10
    Posts
    3

    Excel Adjacent Cell Formula

    hi, what I want to do is create a chart which add the values of the number in the adjacent cells

    so in the I column there would be the values of a+a, b+b, c+c

    thanks : )

    excel.PNG

    \1
    Last edited by craigmd; 01-07-2017 at 07:37 AM.

  2. #2
    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: Excel

    Hello and welcome to the forum. Unfortunately your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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.

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Excel Adjacent Cell Formula

    Welcome to the forum and thanks for changing your thread title.

    Put this in I2, dragged down to I4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you have a lot more than two columns of a/b/c and numbers, then this will get a bit unwieldy, but with just two columns it'll work fine.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel Adjacent Cell Formula

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    2
    A
    23
    C
    21
    A
    40
    3
    B
    34
    A
    17
    B
    79
    4
    C
    34
    B
    45
    C
    55


    This formula entered in I2 and copied down:

    =SUMIF(B$2:E$4,H2,C$2:F$4)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Excel Adjacent Cell Formula

    @craigmd: use Tony's formula - it's much easier to extend for more columns of data.

    @Tony: my brain's obviously not working today

  6. #6
    Registered User
    Join Date
    01-07-2017
    Location
    uk
    MS-Off Ver
    10
    Posts
    3

    Re: Excel Adjacent Cell Formula

    thanks!

    how would I put a,b,c into the formula instead of using the H column?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,164

    Re: Excel Adjacent Cell Formula

    Like this:

    =SUMIF(B$2:E$4,"A",C$2:F$4)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Excel Adjacent Cell Formula

    Unless either column B or E had A,B and C in order , not easy: how do we know the sequence?

    If column B is always ascending order, replace H2 by B2

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel Adjacent Cell Formula

    Quote Originally Posted by craigmd View Post
    how would I put a,b,c into the formula instead of using the H column?
    I have my doubts that your REAL criteria are A, B and C.

    Tell us what the REAL criteria are.

    What's wrong with using cells to hold the criteria?

+ 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