=if(sumproduct( or if(countifs(

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
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

411044924
5.280613
411044924
5.280613
411044924
5.280613
411044924
5.280613
411044924
5.280613
411044924
5.280613
411044978
10.561225
411044978
10.561225
411044978
10.561225
411044978
10.561225
411044976
10.561225
411044976
10.561225
411044976
10.561225
411044976
10.561225
411044919
5.071967
411044919
5.071967

<tbody>
</tbody>

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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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
Yes,
this is working, great,

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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