Explain formula

LoganTrk

New Member
Joined
Jan 24, 2019
Messages
17
Somebody explain me this formula please. I need your help
=IF(E3=0;"";IF(COUNTIFS(G:G;G3;AD:AD;">="&AD3;AD:AD;"<="&AE3)>1;"WRONG";"OK"))
G
AD
AE

10000571
13/12/2018 15:30
13/12/2018 19:30
OK
10000571
13/12/2018 15:30
13/12/2018 19:30
OK
11500834
06/12/2018 15:00

06/12/2018 21:00

WRONG






<tbody>
</tbody>
 

Some videos you may like

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Scott T

Well-known Member
Joined
Dec 14, 2016
Messages
2,616
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
IF(logical_test,value_if_true,value_if_false)

If E3=0 then return blank, that is what "" is. if E3 is not 0,logical text is false, then the second if statement is run the COUNTIFS will count based on the criteria of value in G = G3 AND Value in AD is greater than or equal to AD3 AND AD is less than or equal to AE3. If that count is greater then 1 the WRONG is returned if not then "OK" is returned.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,514
Messages
5,602,089
Members
414,501
Latest member
mdhaumyu

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
Top