=mode(if(and help

chrischilton01

New Member
Joined
Jun 9, 2014
Messages
19
I am trying to calculate the mode of our turn-around times for cases we handle as follows:

In column N, which contains whole numbers, which I want to obtain the mode values of, if:

  • Column A equals the name of a person in my team reference by cell J2
  • if the date in column I was greater than 31/12/12 (referenced J1) and less than 01/01/2013 (referenced by K1)
So far I can get the below to work based only on using greater than 31/12/12 and not with the less than option as follows:

{=MODE(IF([Jan12_May14_Closed_Cases.xlsx]report1401715985583!$A$2:$A$56366=J2,IF([Jan12_May14_Closed_Cases.xlsx]report1401715985583!$I$2:$I$56366<J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$M$56366)))}

I have tried adding in a AND statement but cannot seem to get this to work, any ideas?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
*[code*]{=MODE(IF([Jan12_May14_Closed_Cases.xlsx]report1401715985583!$A$2:$A$56366=J2,IF([Jan12_May14_Closed_Cases.xlsx]report1401715985583!$I$2:$I$56366...[*/code]*


Get rid of the red asterisks and finish the line of code
 
Upvote 0
*[code*]{=MODE(IF([Jan12_May14_Closed_Cases.xlsx]report1401715985583!$A$2:$A$56366=J2,IF([Jan12_May14_Closed_Cases.xlsx]report1401715985583!$I$2:$I$56366...[*/code]*


Get rid of the red asterisks and finish the line of code

Hope this works, thanks for your help.

*[{=MODE(IF('N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$A$2:$A$56366=J2,IF('N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$I$2:$I$56366<J1,'N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$M$2:$M$56366)))}*]
 
Upvote 0
Nope, it should look like this
Rich (BB code):
{=MODE(IF('N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$A$2:$A$56366=J2,IF('N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$I$2:$I$56366
 
Upvote 0
Code:
[COLOR=#333333]{=MODE(IF('N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$A$2:$A$56366=J2,IF('N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$I$2:$I$56366<J1,'N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$M$2:$M$56366)))[/COLOR]}code]
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

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