Nested IF Between Forumla help!

adam9098

New Member
Joined
Jun 27, 2012
Messages
6
Hello,

I am trying to pull data between specific dates and times. Below is my formula and I can't seem to get the formula to pull the data that is between.

=PERCENTILE(IF(TESTDATA!$A:$A="SERVERNAME",IF(AND(TESTDATA!$B:$B<=0+"6/4/2012 11:59:00 PM", TESTDATA!$B:$B>0+"6/1/2012 11:59:00 PM"),TESTDATA!$N:$N))), 0.95)

When I do the formula below I can get my results no problem, it's just getting in between the two dates that I am having issues.

=PERCENTILE(IF(TESTDATA!$A:$A="SERVERNAME",IF(TESTDATA!$B:$B<0+"6/1/2012 11:59:00 PM",TESTDATA!$N:$N)), 0.95)

Any ideas? :eek:
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I think the issue is having the array inside of the AND function.

This is untested but try (I may not have gotten all the parenthesis in the right place).

=PERCENTILE(IF(TESTDATA!$A:$A="SERVERNAME",IF((TESTDATA!$B:$B<=0+"6/4/2012 11:59:00 PM")*( TESTDATA!$B:$B>0+"6/1/2012 11:59:00 PM"),TESTDATA!$N:$N)), 0.95)

<COLGROUP><COL style="WIDTH: 821pt; mso-width-source: userset; mso-width-alt: 40045" width=1095><TBODY>
</TBODY>

Also since there is an array inside of an IF, I think you will probably need to enter this formula as an array using CTRL-SHIFT-ENTER.
 
Upvote 0

Forum statistics

Threads
1,203,521
Messages
6,055,883
Members
444,830
Latest member
Excelsmallbusinessmom

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