=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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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<J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$M$56366)))
 
Last edited:
Upvote 0
Part 2

Code:
 <J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$M$56366)))
<J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$m$56366)))} [="" code]
<J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$m$56366)))} [="" code]
<J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$m$56366)))}< html=""></J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$m$56366)))}<></J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$m$56366)))}></J1,[Jan12_May14_Closed_Cases.xlsx]report1401715985583!$M$2:$m$56366)))}>
 
Last edited:
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

<j1,[jan12_may14_closed_cases.xlsx]report1401715985583!$m$2:$m$56366))) [="" code][="" quote]
This post was correct, but you still didn't paste the entire formula.</j1,[jan12_may14_closed_cases.xlsx]report1401715985583!$m$2:$m$56366)))>
 
Upvote 0
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<J1,'N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$M$2:$M$56366)))}
 
Upvote 0
Code:
{=MODE(IF(Jan12_May14_Closed_Cases.xlsxreport1401715985583'!$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)))}
 
Upvote 0
I don't understand why you're double posting. You should put your entire line of code between the two code tags.

I just found out a simpler way to post code without using the tags. Paste your line of code into the reply form, highlight the code, and click the # button in the toolbar above the form. This will correctly wrap your code.
 
Upvote 0
Done exactly that now...just left out the { and } at the start of the formula before = and at the end, hope it works or I will top myelf.

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<J1,'N:\Hotel Contracts\Public\Dynamic Inventory\Chris\Cases\[Jan12_May14_Closed_Cases.xlsx]report1401715985583'!$M$2:$M$56366)))
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,287
Members
449,218
Latest member
Excel Master

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