Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default only return true values

I want to only return the true values, in consecutive cells, from an IF
statement. Is this possible? Currently using an IF statement and I can't do
this.

E.G
A B C
John Male Mary
Mary Female Jane
Paul Male
Simon Male
Jane Female

In the above example I just want to return the names of all females.
therefore column C is my desired result. Any help appreciated...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default only return true values

You don't need an IF statement, just use AutoFilter. You can display a
column of just female names, copy them, and paste them elsewhere.
--
Gary''s Student - gsnu200778


"John M" wrote:

I want to only return the true values, in consecutive cells, from an IF
statement. Is this possible? Currently using an IF statement and I can't do
this.

E.G
A B C
John Male Mary
Mary Female Jane
Paul Male
Simon Male
Jane Female

In the above example I just want to return the names of all females.
therefore column C is my desired result. Any help appreciated...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default only return true values

Sorry. The example below is just a basic example. the project I am working on
is more complex. Basically I want to return the desired values in another
sheet and where the conditional value changes it changes the results.

"Gary''s Student" wrote:

You don't need an IF statement, just use AutoFilter. You can display a
column of just female names, copy them, and paste them elsewhere.
--
Gary''s Student - gsnu200778


"John M" wrote:

I want to only return the true values, in consecutive cells, from an IF
statement. Is this possible? Currently using an IF statement and I can't do
this.

E.G
A B C
John Male Mary
Mary Female Jane
Paul Male
Simon Male
Jane Female

In the above example I just want to return the names of all females.
therefore column C is my desired result. Any help appreciated...

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default only return true values

Advanced Filter could probably do this for you. Debra Dalgleish has
some comprehensive notes he

http://www.contextures.com/xladvfilter01.html

Hope this helps.

Pete

On Apr 10, 3:52*pm, John M wrote:
Sorry. The example below is just a basic example. the project I am working on
is more complex. Basically I want to return the desired values in another
sheet and where the conditional value changes it changes the results.



"Gary''s Student" wrote:
You don't need an IF statement, just use AutoFilter. *You can display a
column of just female names, copy them, and paste them elsewhere.
--
Gary''s Student - gsnu200778


"John M" wrote:


I want to only return the true values, in consecutive cells, from an IF
statement. Is this possible? Currently using an IF statement and I can't do
this.


E.G
A * * * * * * B * * * * * * C
John * * * *Male * * * *Mary
Mary * * * Female * *Jane
Paul * * * *Male
Simon * * Male
Jane * * * Female


In the above example I just want to return the names of all females.
therefore column C is my desired result. Any help appreciated...- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default only return true values

Thanks Pete

yes this helps but it only works if i want the data that is copied over to
remain static. Any ideas on how if the data changes that it can be
automatically updated in the next sheet?

"Pete_UK" wrote:

Advanced Filter could probably do this for you. Debra Dalgleish has
some comprehensive notes he

http://www.contextures.com/xladvfilter01.html

Hope this helps.

Pete

On Apr 10, 3:52 pm, John M wrote:
Sorry. The example below is just a basic example. the project I am working on
is more complex. Basically I want to return the desired values in another
sheet and where the conditional value changes it changes the results.



"Gary''s Student" wrote:
You don't need an IF statement, just use AutoFilter. You can display a
column of just female names, copy them, and paste them elsewhere.
--
Gary''s Student - gsnu200778


"John M" wrote:


I want to only return the true values, in consecutive cells, from an IF
statement. Is this possible? Currently using an IF statement and I can't do
this.


E.G
A B C
John Male Mary
Mary Female Jane
Paul Male
Simon Male
Jane Female


In the above example I just want to return the names of all females.
therefore column C is my desired result. Any help appreciated...- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default only return true values

I don't know of any automatic way to make filters become dynamic, other than
using a macro. Perhaps if you double-click on one of the criteria cells as
if to edit it, and then press <enter.

Hope this helps.

Pete

"John M" wrote in message
...
Thanks Pete

yes this helps but it only works if i want the data that is copied over to
remain static. Any ideas on how if the data changes that it can be
automatically updated in the next sheet?

"Pete_UK" wrote:

Advanced Filter could probably do this for you. Debra Dalgleish has
some comprehensive notes he

http://www.contextures.com/xladvfilter01.html

Hope this helps.

Pete

On Apr 10, 3:52 pm, John M wrote:
Sorry. The example below is just a basic example. the project I am
working on
is more complex. Basically I want to return the desired values in
another
sheet and where the conditional value changes it changes the results.



"Gary''s Student" wrote:
You don't need an IF statement, just use AutoFilter. You can display
a
column of just female names, copy them, and paste them elsewhere.
--
Gary''s Student - gsnu200778

"John M" wrote:

I want to only return the true values, in consecutive cells, from
an IF
statement. Is this possible? Currently using an IF statement and I
can't do
this.

E.G
A B C
John Male Mary
Mary Female Jane
Paul Male
Simon Male
Jane Female

In the above example I just want to return the names of all
females.
therefore column C is my desired result. Any help appreciated...-
Hide quoted text -

- Show quoted text -





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default only return true values

How about an alternative?

Add headers in row 1
Select your range (A1:Bxxx)
Data|Filter|Autofilter
Use the arrow over the header in B1 to show just the females.



John M wrote:

I want to only return the true values, in consecutive cells, from an IF
statement. Is this possible? Currently using an IF statement and I can't do
this.

E.G
A B C
John Male Mary
Mary Female Jane
Paul Male
Simon Male
Jane Female

In the above example I just want to return the names of all females.
therefore column C is my desired result. Any help appreciated...


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
if multiple values same/others different, return true Jshendel Excel Discussion (Misc queries) 7 August 21st 06 06:14 PM
Search for 2 true arguments and return true or false David Excel Discussion (Misc queries) 3 July 15th 06 10:18 AM
Look up to return a true/false value WTG Excel Worksheet Functions 1 April 12th 06 04:14 PM
Function to return True/False if all are validated as True by ISNU Tetsuya Oguma Excel Worksheet Functions 2 March 15th 06 10:28 AM
How do I return True False SimonP Excel Worksheet Functions 1 January 31st 06 04:12 PM


All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"