ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula Problem (https://www.excelbanter.com/excel-worksheet-functions/41918-formula-problem.html)

Jeanette

Formula Problem
 
I know there is a simple solution to my problem. The following is my formula:

=COUNT(IF((TEXT(IndexData!$G$5:$G$23309,"yyyymm")= "200501")*(IndexData!$A$5:$A$23309="AUT"),AND(Inde xData!$I$5:$I$23309<=3,""),IndexData!$I$5:$I$23309 ))

The formula is not bringing back to the number of "AUT" less than or equal
to 3, if it were the number would be Zero, instead it is coming back with
23304 for the month of January when there were no "AUT" completed in less
than 19 days.

What have I done and how do I fix it? I also need the # of "AUT" between 4
and 5 and Greater than 6.

Peo Sjoblom

=SUMPRODUCT(--(TEXT(IndexData!$G$5:$G$23309,"yyyymm")="200501"),--(IndexData!$A$5:$A$23309="AUT"),--(IndexData!$I$5:$I$23309<=3))


--
Regards,

Peo Sjoblom

(No private emails please)


"Jeanette" wrote in message
...
I know there is a simple solution to my problem. The following is my
formula:

=COUNT(IF((TEXT(IndexData!$G$5:$G$23309,"yyyymm")= "200501")*(IndexData!$A$5:$A$23309="AUT"),AND(Inde xData!$I$5:$I$23309<=3,""),IndexData!$I$5:$I$23309 ))

The formula is not bringing back to the number of "AUT" less than or equal
to 3, if it were the number would be Zero, instead it is coming back with
23304 for the month of January when there were no "AUT" completed in less
than 19 days.

What have I done and how do I fix it? I also need the # of "AUT" between
4
and 5 and Greater than 6.



Jeanette

Thanks ~ now how do I write --(indexData!$I$5:$I$23309=4<=5) and have it
work correctly?

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(TEXT(IndexData!$G$5:$G$23309,"yyyymm")="200501"),--(IndexData!$A$5:$A$23309="AUT"),--(IndexData!$I$5:$I$23309<=3))


--
Regards,

Peo Sjoblom

(No private emails please)


"Jeanette" wrote in message
...
I know there is a simple solution to my problem. The following is my
formula:

=COUNT(IF((TEXT(IndexData!$G$5:$G$23309,"yyyymm")= "200501")*(IndexData!$A$5:$A$23309="AUT"),AND(Inde xData!$I$5:$I$23309<=3,""),IndexData!$I$5:$I$23309 ))

The formula is not bringing back to the number of "AUT" less than or equal
to 3, if it were the number would be Zero, instead it is coming back with
23304 for the month of January when there were no "AUT" completed in less
than 19 days.

What have I done and how do I fix it? I also need the # of "AUT" between
4
and 5 and Greater than 6.




Alok

Since you want the AND of the conditions =4, <=5 all you do is split it into
two factors

--(indexData!$I$5:$I$23309=4),--(indexData!$I$5:$I$23309<=5)

Alok

"Jeanette" wrote:

Thanks ~ now how do I write --(indexData!$I$5:$I$23309=4<=5) and have it
work correctly?

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(TEXT(IndexData!$G$5:$G$23309,"yyyymm")="200501"),--(IndexData!$A$5:$A$23309="AUT"),--(IndexData!$I$5:$I$23309<=3))


--
Regards,

Peo Sjoblom

(No private emails please)


"Jeanette" wrote in message
...
I know there is a simple solution to my problem. The following is my
formula:

=COUNT(IF((TEXT(IndexData!$G$5:$G$23309,"yyyymm")= "200501")*(IndexData!$A$5:$A$23309="AUT"),AND(Inde xData!$I$5:$I$23309<=3,""),IndexData!$I$5:$I$23309 ))

The formula is not bringing back to the number of "AUT" less than or equal
to 3, if it were the number would be Zero, instead it is coming back with
23304 for the month of January when there were no "AUT" completed in less
than 19 days.

What have I done and how do I fix it? I also need the # of "AUT" between
4
and 5 and Greater than 6.




Jeanette

Thanks ~ I was including "and" so it wasn't working

"Alok" wrote:

Since you want the AND of the conditions =4, <=5 all you do is split it into
two factors

--(indexData!$I$5:$I$23309=4),--(indexData!$I$5:$I$23309<=5)

Alok

"Jeanette" wrote:

Thanks ~ now how do I write --(indexData!$I$5:$I$23309=4<=5) and have it
work correctly?

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(TEXT(IndexData!$G$5:$G$23309,"yyyymm")="200501"),--(IndexData!$A$5:$A$23309="AUT"),--(IndexData!$I$5:$I$23309<=3))


--
Regards,

Peo Sjoblom

(No private emails please)


"Jeanette" wrote in message
...
I know there is a simple solution to my problem. The following is my
formula:

=COUNT(IF((TEXT(IndexData!$G$5:$G$23309,"yyyymm")= "200501")*(IndexData!$A$5:$A$23309="AUT"),AND(Inde xData!$I$5:$I$23309<=3,""),IndexData!$I$5:$I$23309 ))

The formula is not bringing back to the number of "AUT" less than or equal
to 3, if it were the number would be Zero, instead it is coming back with
23304 for the month of January when there were no "AUT" completed in less
than 19 days.

What have I done and how do I fix it? I also need the # of "AUT" between
4
and 5 and Greater than 6.




All times are GMT +1. The time now is 01:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com