+ Reply to Thread
Results 1 to 6 of 6

SumIF in a single horizontal row (range and sumrange in same row)

  1. #1
    Registered User
    Join Date
    12-22-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    9

    SumIF in a single horizontal row (range and sumrange in same row)

    Hi,

    I want to find the sum of a row with the range being from cells E2 to I2 and sum range from J2 to N2, cell E2 corresponds to J2,F2 to K2 and so on.
    My sheet is very big with nearly 100,000 rows, Ive attached a sample sheet for your reference.

    Best Regards
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SumIF in a single horizontal row (range and sumrange in same row)

    Try

    =SUMIF($E2:$I2,"First",$J2:$N2)

  3. #3
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: SumIF in a single horizontal row (range and sumrange in same row)

    Hi, noclueaboutexcel!

    Write in
    [B1] = First, [C1] = Second, [D1] = Third

    Try this:
    [B2] : =SUMIF($E2:$I2,B$1,$J2:$N2)
    Formula B2 drag right and down.

    Check file. Blessings!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-22-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    9

    Re: SumIF in a single horizontal row (range and sumrange in same row)

    Hi it worked with absolute reference when i tried it without absolute references it didnt work.can you explain why? anyways thanks youve been really helpful

  5. #5
    Registered User
    Join Date
    12-22-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    9

    Re: SumIF in a single horizontal row (range and sumrange in same row)

    Yes both the ways are working thanks a lot @Jonmo1 and @johnmpl

  6. #6
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: SumIF in a single horizontal row (range and sumrange in same row)

    Hi, again!

    Quote Originally Posted by noclueaboutexcel View Post
    it worked with absolute reference when i tried it without absolute references it didnt work.can you explain why?
    This formula:
    Quote Originally Posted by johnmpl View Post
    [B2] : =SUMIF($E2:$I2,B$1,$J2:$N2)
    Works with mixed reference, not absolute reference.

    Why I need mixed reference?
    Because if I drag the formula to the right, I need that the columns don't move (dollar sign before the letters)
    but when I drag the formula down, I need that the rows move (without dollar sign before numbers).
    This was for ranges E2:I2 and J2:N2

    Is the opposite for B1 reference.

    Blessings!

+ 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. Sumif with a single criteria in a range
    By Bromley86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2017, 10:30 PM
  2. [SOLVED] horizontal sumif
    By rnajohnson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2015, 02:37 PM
  3. SumIf with sumrange in multiple variable columns
    By rpinxt in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-19-2015, 09:10 AM
  4. Horizontal Sumif
    By lorber123 in forum Excel General
    Replies: 3
    Last Post: 10-15-2014, 10:06 PM
  5. SUMIF with Horizontal sum range
    By mennojim in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-18-2013, 04:26 PM
  6. sumif off of a single cell range
    By fireguy7 in forum Excel General
    Replies: 2
    Last Post: 11-25-2009, 03:20 PM
  7. How to sumif with multiple range and single sumrange
    By helpplease! in forum Excel General
    Replies: 4
    Last Post: 11-05-2007, 11:53 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