Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
TeachCTC
 
Posts: n/a
Default Can I get multiple values returned for an IF formula?

I have a simple table with student names in B2:L2 and words in A2:A221.
Under each student name next to the word, I put a 1 if they knew the word or
a 0 if they did not.
Question: Can I have the students name returned if they had a 0 in the box
for a particular word? Example: In A2 the word is 'the'. Under student A I
entered a 1, under student B a 0, and student C a 0, etc. I want a formula
that will return each name that has a 0 for that word.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Roger Govier
 
Posts: n/a
Default Can I get multiple values returned for an IF formula?

Hi
Maybe the easiest way would be to mark your range B2:L2
DataFilterAutofilter.
Use the dropdown to select either 0 or 1 as required.

Regards

Roger Govier


TeachCTC wrote:
I have a simple table with student names in B2:L2 and words in A2:A221.
Under each student name next to the word, I put a 1 if they knew the word or
a 0 if they did not.
Question: Can I have the students name returned if they had a 0 in the box
for a particular word? Example: In A2 the word is 'the'. Under student A I
entered a 1, under student B a 0, and student C a 0, etc. I want a formula
that will return each name that has a 0 for that word.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max
 
Posts: n/a
Default Can I get multiple values returned for an IF formula?

Another option to try ..

Sample construct at:
http://www.savefile.com/files/2931036
Returning_MultipleColValues_TeachCTC_newusers.xls

Assume source table is in Sheet1,
student names in B2:L2, words in A3:A221
(think there was a typo in the words range,
should start in A3, not A2)

Using empty cols to the right,
Put in N3: =IF(B3="","",IF(B3=0,COLUMN(),""))
Copy N3 across to X3, fill down to X221

In a new Sheet2
-------------
Put in A2, copy down to A220:
=IF(Sheet1!A3="","",Sheet1!A3)

Put in B2:
=IF(ISERROR(SMALL(Sheet1!$N3:$X3,COLUMNS($A$1:A1)) ),"",
INDEX(Sheet1!$B$2:$L$2,
MATCH(SMALL(Sheet1!$N3:$X3,COLUMNS($A$1:A1)),Sheet 1!$N3:$X3,0)))

Copy B2 across to L2, fill down to L220

Sheet2 will return the student names,
neatly bunched at the left next to col with the words (col A)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"TeachCTC" wrote in message
...
I have a simple table with student names in B2:L2 and words in A2:A221.
Under each student name next to the word, I put a 1 if they knew the word

or
a 0 if they did not.
Question: Can I have the students name returned if they had a 0 in the

box
for a particular word? Example: In A2 the word is 'the'. Under student

A I
entered a 1, under student B a 0, and student C a 0, etc. I want a

formula
that will return each name that has a 0 for that word.



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
copy values generated by conditional formula in one sheet to the other work sheet as values ramana Excel Worksheet Functions 1 October 5th 05 01:04 PM
copy values generated by conditional formula in one sheet to the other work sheet as values bobby Excel Discussion (Misc queries) 1 October 5th 05 12:18 PM
Using returned values as part of another formula Duby Excel Worksheet Functions 3 October 1st 05 03:47 PM
How To Use Cells Without Values in a Formula Roger H. Excel Worksheet Functions 2 April 6th 05 01:01 AM
How to sum values in multiple worksheets Robert Lawrence Excel Worksheet Functions 3 January 29th 05 05:15 AM


All times are GMT +1. The time now is 05:29 AM.

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"