Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Haz Haz is offline
external usenet poster
 
Posts: 46
Default Countif by match two columns

Hi

I am trying to match 2 cells in different cols and then sum the adjcent cols
up.

In A2 i have A002 I would like to find this in Col G then sum d2 and
subtract this from j2 if there is a match.

Any help would be appreciated.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Countif by match two columns

=SUMPRODUCT(--(A1:A13=A2),--(G1:G13=A2),D1:D13)


See this for more examples:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html


Regards,
Ryan--


--
RyGuy


"Haz" wrote:

Hi

I am trying to match 2 cells in different cols and then sum the adjcent cols
up.

In A2 i have A002 I would like to find this in Col G then sum d2 and
subtract this from j2 if there is a match.

Any help would be appreciated.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Countif by match two columns

Hey I am doing almost the same as what you are doing here is the code I am
using
=SUMIF('Weekly Entry'!D10,C7,'Weekly Entry'!O23:O24)
I am using 2 difrent sheets to gather my info and I am match D10 to C7 on 2
diferent sheets and if it does match it basicaly copies another sum total on
the weekly sheet
"Haz" wrote in message
...
Hi

I am trying to match 2 cells in different cols and then sum the adjcent
cols
up.

In A2 i have A002 I would like to find this in Col G then sum d2 and
subtract this from j2 if there is a match.

Any help would be appreciated.

Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with sorting text in columns to match other columns rkat Excel Discussion (Misc queries) 1 August 11th 06 03:42 AM
countif = < AND value in adjacent columns match criteria crafty_girl Excel Worksheet Functions 3 April 27th 06 08:40 PM
Countif, Match or Sumif Formula Gunjani Excel Worksheet Functions 4 March 29th 06 05:22 PM
Countif, Index, Match... not sure which to use Amy via OfficeKB.com Excel Worksheet Functions 4 September 23rd 05 11:04 PM
If two columns match then count one. How? Tried countif and sum . IMC Medrec Excel Worksheet Functions 1 February 14th 05 12:28 PM


All times are GMT +1. The time now is 07:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"