+ Reply to Thread
Results 1 to 6 of 6

Sumif and concatenate

  1. #1
    Registered User
    Join Date
    09-10-2008
    Location
    canada
    Posts
    5

    Sumif and concatenate

    Folks,
    I have been using the CONCATENATE function to turn SUMIF into a relative adress capable tool. It turns the function into a pretty useful tool but it seems cumbersome to me.
    Any one know a smarter way around this?
    Thanks.
    Francois.

    Ex.: sumif("b2:b200",concatenate("=",c2),"c2:c200")

  2. #2
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    frankie6677,

    Teh formula you have posted is equivalent to
    =sumif(b2:b200,c2,c2:c200) I think.

    Maybe I am missing the point, can you explain what you are trying to achieve?
    Kieran

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    How does that formula even work?

  4. #4
    Registered User
    Join Date
    09-10-2008
    Location
    canada
    Posts
    5
    Kieran,
    I think this is a part of what I whished to acheive.
    I thought you needed to have an equation in the criterion section that included an arithmetic expression.
    Taking it a bit further, how would we use ">" instead of "="?
    As in: =sumif(b2:b200,concatenate(">",c2),d2:d200)
    Using =sumif(b2:b200,>c2,d2:d200) would not work as XL would consider"c2" as a value instead of as a reference.
    The concatenate version turns the fixed condition into a relative one.
    I may have overlooked something again here...

    Thanks Kieran, you have simplified my work here!
    Frankie

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    =SUMIF(B1:B9,">"&C2,D1:D9) is the usual way to ref cell

  6. #6
    Registered User
    Join Date
    09-10-2008
    Location
    canada
    Posts
    5

    Smile Sumif

    Thanks
    I really learned new things today.
    This is a very great forum.
    Fr.

+ 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