Results 1 to 2 of 2

SUM IF formula with conditions

Threaded View

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    SUM IF formula with conditions

    Test_Spreadsheet.xlsx
    Hi

    I have a spreadsheet where I need one formula to use for every cell in column E as the data will change every day. I currently have an IF statement which I am using to find duplicate values in Col A to sum all the values together from col D.

    =IF(COUNTIF(A:A,A2)=COUNTIF($A$2:A2,A2),SUMIF(A:A,A2,D:D),"")

    This formula works perfectly for all of my values that have a trans type of TCASH. However, I need it to be a little more specific for the trans type TEFT. For example, the TEFT trans store code will come across with either just 01 added to the end of the store code and sometimes a second code will come across with 02.
    For example you can see in the attachment that Store 1001, 1002 & 1003 have 2 values with either 01 added to the end or 02. All the stores that only have one value will just have 01 added.

    Now what I need is to modify this formula to do all the above but with the condition that if it finds value 100101 & 100102 that it adds these together. The same applies for 100201 & 100202. However it will not apply to 100301 & 100302, which I need to keep separate. I have highlighted the values in different colours to make it easier to see (there will be no colour coding on the actual spreadsheet).

    Is this possible?

    Thanks
    Last edited by lindafinlay; 08-14-2013 at 01:12 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Look UP formula for 2 and 3 conditions
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2013, 09:48 PM
  2. [SOLVED] How to add 2 conditions to a Formula or modify existing formula
    By Frank121977 in forum Excel General
    Replies: 9
    Last Post: 12-22-2012, 03:13 PM
  3. If formula with many conditions
    By gnoke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2010, 08:00 AM
  4. how can we put these conditions in formula?
    By zeeshan_mirza in forum Excel General
    Replies: 1
    Last Post: 07-28-2009, 02:48 AM
  5. [SOLVED] If formula with 12 conditions
    By tkacoo in forum Excel General
    Replies: 5
    Last Post: 04-07-2005, 12:06 PM

Tags for this Thread

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