A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Add to formula



 
 
Thread Tools Display Modes
  #1  
Old September 21st, 2004, 04:19 PM
Pat
external usenet poster
 
Posts: n/a
Default Add to formula

I want to add to the following formula a condition if PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave cell empty.

{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))
,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat



  #2  
Old September 21st, 2004, 04:25 PM
Dave R.
external usenet poster
 
Posts: n/a
Default

To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in the range
(i.e., "apple" would count also), again for all cells or any one cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave cell empty.


{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))
,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat





  #3  
Old September 21st, 2004, 05:41 PM
Pat
external usenet poster
 
Posts: n/a
Default

More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in the range
(i.e., "apple" would count also), again for all cells or any one cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave cell

empty.



{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))
,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat







  #4  
Old September 21st, 2004, 06:09 PM
Dave R.
external usenet poster
 
Posts: n/a
Default

=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in the range
(i.e., "apple" would count also), again for all cells or any one cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if

PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave cell

empty.




{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))
,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat









  #5  
Old September 21st, 2004, 08:48 PM
Pat
external usenet poster
 
Posts: n/a
Default

Here is the formula when adjusted. It does not return a value as expected,
although there is no errors appearing.

=IF(COUNTIF(PO04!T24:T1500,"E"),IF(ISERROR(INDEX(P O04!$L$24:$L$1500,MATCH(PC
!$H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24 :$L$1500,MATCH(PC!$H8,PO04
!$AI$24:$AI$1500,0))),"")

Because PO04!T24:T1500 is formmated to either TRUE or FALSE ("E" being TRUE
and "S" being FALSE) when the formula is adjusted to reflect this for eg.

=IF(COUNTIF(PO04!T24:T1500,1),IF(ISERROR(INDEX(PO0 4!$L$24:$L$1500,MATCH(PC!$
H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24:$ L$1500,MATCH(PC!$H8,PO04!$
AI$24:$AI$1500,0))),"")

a value is returned. The only problem now is that a value will return for a
given cell both if 1(one) or 0 (zero) is used in the same formula.

I hope you can understand where I am coming from!
Pat





"Dave R." wrote in message
...
=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in the

range
(i.e., "apple" would count also), again for all cells or any one cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if

PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave cell

empty.





{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))
,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat











  #6  
Old September 21st, 2004, 10:18 PM
Dave R.
external usenet poster
 
Posts: n/a
Default

You just need to figure out what is actually contained in those cells
(t24:t1500). go to some generally formatted cell and enter =T24 , and see
what comes up. Also see what comes up on cells that are the opposite
(true/false), and use that in the COUNTIF part.

Of course if there is at least one 0 and one 1 in that range, the formula
will return the same thing.




"Pat" wrote in message
...
Here is the formula when adjusted. It does not return a value as expected,
although there is no errors appearing.


=IF(COUNTIF(PO04!T24:T1500,"E"),IF(ISERROR(INDEX(P O04!$L$24:$L$1500,MATCH(PC

!$H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24 :$L$1500,MATCH(PC!$H8,PO04
!$AI$24:$AI$1500,0))),"")

Because PO04!T24:T1500 is formmated to either TRUE or FALSE ("E" being

TRUE
and "S" being FALSE) when the formula is adjusted to reflect this for eg.


=IF(COUNTIF(PO04!T24:T1500,1),IF(ISERROR(INDEX(PO0 4!$L$24:$L$1500,MATCH(PC!$

H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24:$ L$1500,MATCH(PC!$H8,PO04!$
AI$24:$AI$1500,0))),"")

a value is returned. The only problem now is that a value will return for

a
given cell both if 1(one) or 0 (zero) is used in the same formula.

I hope you can understand where I am coming from!
Pat





"Dave R." wrote in message
...
=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in the

range
(i.e., "apple" would count also), again for all cells or any one

cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if

PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave

cell
empty.






{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))

,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat













  #7  
Old September 22nd, 2004, 11:44 AM
Pat
external usenet poster
 
Posts: n/a
Default

Of course if there is at least one 0 and one 1 in that range, the formula
will return the same thing.


Each cell in (t24:t1500) contains either "E" or "S" I have changed the
format so it nolonger is a TRUE or FALSE value. Even with this change the
result is the same. Will a different approach be required?



"Dave R." wrote in message
...
You just need to figure out what is actually contained in those cells
(t24:t1500). go to some generally formatted cell and enter =T24 , and see
what comes up. Also see what comes up on cells that are the opposite
(true/false), and use that in the COUNTIF part.

Of course if there is at least one 0 and one 1 in that range, the formula
will return the same thing.




"Pat" wrote in message
...
Here is the formula when adjusted. It does not return a value as

expected,
although there is no errors appearing.



=IF(COUNTIF(PO04!T24:T1500,"E"),IF(ISERROR(INDEX(P O04!$L$24:$L$1500,MATCH(PC


!$H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24 :$L$1500,MATCH(PC!$H8,PO04
!$AI$24:$AI$1500,0))),"")

Because PO04!T24:T1500 is formmated to either TRUE or FALSE ("E" being

TRUE
and "S" being FALSE) when the formula is adjusted to reflect this for

eg.



=IF(COUNTIF(PO04!T24:T1500,1),IF(ISERROR(INDEX(PO0 4!$L$24:$L$1500,MATCH(PC!$


H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24:$ L$1500,MATCH(PC!$H8,PO04!$
AI$24:$AI$1500,0))),"")

a value is returned. The only problem now is that a value will return

for
a
given cell both if 1(one) or 0 (zero) is used in the same formula.

I hope you can understand where I am coming from!
Pat





"Dave R." wrote in message
...
=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in the

range
(i.e., "apple" would count also), again for all cells or any one

cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if
PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave

cell
empty.







{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))

,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat















  #8  
Old September 22nd, 2004, 09:22 PM
Dave R.
external usenet poster
 
Posts: n/a
Default

Again you must be sure what the content of the cells are. If they are simply
E or S, your formula would work fine. If there is one or more "E" in that
range, it will do the formula, if not it will show a blank.



"Pat" wrote in message
...
Of course if there is at least one 0 and one 1 in that range, the

formula
will return the same thing.


Each cell in (t24:t1500) contains either "E" or "S" I have changed the
format so it nolonger is a TRUE or FALSE value. Even with this change the
result is the same. Will a different approach be required?



"Dave R." wrote in message
...
You just need to figure out what is actually contained in those cells
(t24:t1500). go to some generally formatted cell and enter =T24 , and

see
what comes up. Also see what comes up on cells that are the opposite
(true/false), and use that in the COUNTIF part.

Of course if there is at least one 0 and one 1 in that range, the

formula
will return the same thing.




"Pat" wrote in message
...
Here is the formula when adjusted. It does not return a value as

expected,
although there is no errors appearing.




=IF(COUNTIF(PO04!T24:T1500,"E"),IF(ISERROR(INDEX(P O04!$L$24:$L$1500,MATCH(PC



!$H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24 :$L$1500,MATCH(PC!$H8,PO04
!$AI$24:$AI$1500,0))),"")

Because PO04!T24:T1500 is formmated to either TRUE or FALSE ("E" being

TRUE
and "S" being FALSE) when the formula is adjusted to reflect this for

eg.




=IF(COUNTIF(PO04!T24:T1500,1),IF(ISERROR(INDEX(PO0 4!$L$24:$L$1500,MATCH(PC!$



H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24:$ L$1500,MATCH(PC!$H8,PO04!$
AI$24:$AI$1500,0))),"")

a value is returned. The only problem now is that a value will return

for
a
given cell both if 1(one) or 0 (zero) is used in the same formula.

I hope you can understand where I am coming from!
Pat





"Dave R." wrote in message
...
=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in

the
range
(i.e., "apple" would count also), again for all cells or any one

cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if
PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not leave

cell
empty.








{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))

,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat

















  #9  
Old September 22nd, 2004, 09:57 PM
Pat
external usenet poster
 
Posts: n/a
Default

For the life of me I am sorry but I cannot see how the formula will do what
I want. If the corresponding cell is an "S" and should be an "E" it should
return a blank cell.

If you care to send me a sample workbook of how it works this would be most
welcome. Please email


"Dave R." wrote in message
...
Again you must be sure what the content of the cells are. If they are

simply
E or S, your formula would work fine. If there is one or more "E" in that
range, it will do the formula, if not it will show a blank.



"Pat" wrote in message
...
Of course if there is at least one 0 and one 1 in that range, the

formula
will return the same thing.


Each cell in (t24:t1500) contains either "E" or "S" I have changed the
format so it nolonger is a TRUE or FALSE value. Even with this change

the
result is the same. Will a different approach be required?



"Dave R." wrote in message
...
You just need to figure out what is actually contained in those cells
(t24:t1500). go to some generally formatted cell and enter =T24 , and

see
what comes up. Also see what comes up on cells that are the opposite
(true/false), and use that in the COUNTIF part.

Of course if there is at least one 0 and one 1 in that range, the

formula
will return the same thing.




"Pat" wrote in message
...
Here is the formula when adjusted. It does not return a value as

expected,
although there is no errors appearing.





=IF(COUNTIF(PO04!T24:T1500,"E"),IF(ISERROR(INDEX(P O04!$L$24:$L$1500,MATCH(PC




!$H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24 :$L$1500,MATCH(PC!$H8,PO04
!$AI$24:$AI$1500,0))),"")

Because PO04!T24:T1500 is formmated to either TRUE or FALSE ("E"

being
TRUE
and "S" being FALSE) when the formula is adjusted to reflect this

for
eg.





=IF(COUNTIF(PO04!T24:T1500,1),IF(ISERROR(INDEX(PO0 4!$L$24:$L$1500,MATCH(PC!$




H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24:$ L$1500,MATCH(PC!$H8,PO04!$
AI$24:$AI$1500,0))),"")

a value is returned. The only problem now is that a value will

return
for
a
given cell both if 1(one) or 0 (zero) is used in the same formula.

I hope you can understand where I am coming from!
Pat





"Dave R." wrote in message
...
=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in

the
range
(i.e., "apple" would count also), again for all cells or any

one
cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if
PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not

leave
cell
empty.









{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8 ,PO04!$AI$24:$AI$1500,0)))

,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat



















  #10  
Old September 22nd, 2004, 09:57 PM
Myrna Larson
external usenet poster
 
Posts: n/a
Default

I don't understand... You say "... cell is an 'S' and should be an 'E'". A
formula can't "know" that you've made a data entry error unless you build the
logic to do that into the formula.


On Wed, 22 Sep 2004 21:57:09 +0100, "Pat" wrote:

For the life of me I am sorry but I cannot see how the formula will do what
I want. If the corresponding cell is an "S" and should be an "E" it should
return a blank cell.

If you care to send me a sample workbook of how it works this would be most
welcome. Please email


"Dave R." wrote in message
...
Again you must be sure what the content of the cells are. If they are

simply
E or S, your formula would work fine. If there is one or more "E" in that
range, it will do the formula, if not it will show a blank.



"Pat" wrote in message
...
Of course if there is at least one 0 and one 1 in that range, the

formula
will return the same thing.

Each cell in (t24:t1500) contains either "E" or "S" I have changed the
format so it nolonger is a TRUE or FALSE value. Even with this change

the
result is the same. Will a different approach be required?



"Dave R." wrote in message
...
You just need to figure out what is actually contained in those cells
(t24:t1500). go to some generally formatted cell and enter =T24 , and

see
what comes up. Also see what comes up on cells that are the opposite
(true/false), and use that in the COUNTIF part.

Of course if there is at least one 0 and one 1 in that range, the

formula
will return the same thing.




"Pat" wrote in message
...
Here is the formula when adjusted. It does not return a value as
expected,
although there is no errors appearing.





=IF(COUNTIF(PO04!T24:T1500,"E"),IF(ISERROR(INDEX( PO04!$L$24:$L$1500,MATCH(PC




!$H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$2 4:$L$1500,MATCH(PC!$H8,PO04
!$AI$24:$AI$1500,0))),"")

Because PO04!T24:T1500 is formmated to either TRUE or FALSE ("E"

being
TRUE
and "S" being FALSE) when the formula is adjusted to reflect this

for
eg.





=IF(COUNTIF(PO04!T24:T1500,1),IF(ISERROR(INDEX(PO 04!$L$24:$L$1500,MATCH(PC!$




H8,PO04!$AI$24:$AI$1500,0))),"",INDEX(PO04!$L$24: $L$1500,MATCH(PC!$H8,PO04!$
AI$24:$AI$1500,0))),"")

a value is returned. The only problem now is that a value will

return
for
a
given cell both if 1(one) or 0 (zero) is used in the same formula.

I hope you can understand where I am coming from!
Pat





"Dave R." wrote in message
...
=IF(COUNTIF(PO04!T24:T1500,"E"),enter your formula here ,"")




"Pat" wrote in message
...
More than one cell will contain the letter "E"
"E" will have to be alone


"Dave R." wrote in message
...
To clarify -- if ALL cells t24:t1500 contain "E"?
Does "E" have to be alone, or any occurence of "E" anywhere in

the
range
(i.e., "apple" would count also), again for all cells or any

one
cell?


"Pat" wrote in message
...
I want to add to the following formula a condition if
PO04!$T$24:$T$1500
contains the letter "E" a value will be returned, if not

leave
cell
empty.









{=IF(ISERROR(INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H 8,PO04!$AI$24:$AI$1500,0)))

,"",INDEX(PO04!$L$24:$L$1500,MATCH(PC!$H8,PO04!$AI $24:$AI$1500,0)))}

Thanking you if you can be of help.
Pat



















 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a SUMPRODUCT formula to COUNTA active... BeSmart Worksheet Functions 8 March 27th, 2004 03:36 PM
Alternative formula to HLookup Bernie Deitrick Worksheet Functions 0 March 26th, 2004 12:53 PM
Offset formula Frank Kabel Worksheet Functions 5 March 15th, 2004 09:50 PM
Dynamic formula to sum across rows turtleman2 Worksheet Functions 5 March 8th, 2004 08:11 PM
Sheet Names Joseph M. Yonek Worksheet Functions 6 January 3rd, 2004 02:15 AM


All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.