=if(sumproduct( or if(countifs(

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
I have Cost centers in column G and interest in column Y, Cost centers are repeated and so interest rates accordingly, only one interest rate should be for one cost center, so if there are more than one rates there is an error, so for example

[TABLE="width: 169"]
<tbody>[TR]
[TD]411044924
[/TD]
[TD]5.280613
[/TD]
[/TR]
[TR]
[TD]411044924
[/TD]
[TD]5.280613
[/TD]
[/TR]
[TR]
[TD]411044924
[/TD]
[TD]5.280613
[/TD]
[/TR]
[TR]
[TD]411044924
[/TD]
[TD]5.280613
[/TD]
[/TR]
[TR]
[TD]411044924
[/TD]
[TD]5.280613
[/TD]
[/TR]
[TR]
[TD]411044924
[/TD]
[TD]5.280613
[/TD]
[/TR]
[TR]
[TD]411044978
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044978
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044978
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044978
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044976
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044976
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044976
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044976
[/TD]
[TD]10.561225
[/TD]
[/TR]
[TR]
[TD]411044919
[/TD]
[TD]5.071967
[/TD]
[/TR]
[TR]
[TD]411044919
[/TD]
[TD]5.071967
[/TD]
[/TR]
</tbody>[/TABLE]

I need a formula that should indicate if the interest rate is more than one of any of these cost centers.
I am using
=IF(SUMPRODUCT($G$80:G80=G80)*($Y$80:Y80=Y80)>1,"ERROR","OKAY")


Best regards,

Sohail Rizki
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
If I am correctly understanding your request, this should be the formula you are looking for:

=IF(COUNTIFS($G:$G,$G2,$Y:$Y,"<>"&$Y2)>0,"ERROR","OKAY")

typed in row 2 and dragged down for each row.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top