Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default IF formula returns blank cells--only want values to show

I am trying to link data from one worksheet to another using the IF formula.
The first worksheet (roster) includes student information, status (active or
inactive) and assessment units completed (designated as Y or N for each
unit). The subsequent worsheets include the data for each unit.

With the help of Max--I used the following formula in the second worksheet
to return a value only if the student was active and had completed the unit:

=IF(Roster!$A9="I","",IF(AND(Roster!$A9="A",Roster !$H9="Y"),Roster!B9,""))

However, if a student is inactive (I) --a blank cell is returned. Is there
any way for the values of only the active students (A) to appear on the
worksheet sequentialy (without the blank cells)?

Your help is greatly appreciated!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF formula returns blank cells--only want values to show

Assume your source data table is in Roster, cols A to H,
where data starts from row 8 down to row 100 (say)

In your other sheet,
Put in say, J8:
=IF(Roster!$A8="I","",IF(AND(Roster!$A8="A",Roster !$H8="Y"),ROWS($1:1),""))
Leave J1:J7 empty. This is the extraction criteria col, which is spun-off
your earlier thread.

Put in K8:
=IF(ROWS($1:1)COUNT($J$8:$J$100),"",INDEX(Roster! A$8:A$100,SMALL($J$8:$J$100,ROWS($1:1))))
Copy K8 across to R8. Select J8:R8, copy down. Minimize/hide col J. Cols K
to R will return the required lines from Roster which satisfy the criteria,
with all lines neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Wilma" wrote:
I am trying to link data from one worksheet to another using the IF formula.
The first worksheet (roster) includes student information, status (active or
inactive) and assessment units completed (designated as Y or N for each
unit). The subsequent worsheets include the data for each unit.

With the help of Max--I used the following formula in the second worksheet
to return a value only if the student was active and had completed the unit:

=IF(Roster!$A9="I","",IF(AND(Roster!$A9="A",Roster !$H9="Y"),Roster!B9,""))

However, if a student is inactive (I) --a blank cell is returned. Is there
any way for the values of only the active students (A) to appear on the
worksheet sequentialy (without the blank cells)?

Your help is greatly appreciated!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default IF formula returns blank cells--only want values to show

I guess perhaps I was not clear in my question--or perhaps it is not possible
to do what I am hoping to accomplish. If a student is inactive (I) --i am
getting a blank cell (or row). What I am trying to achieve is for the data
of only the active students (A) to appear in the second worksheet.

The formula below gave me the values (list of active students) but in a
different column than where I wanted it to appear.

I hope this is clear--please let me know if more info is needed.

Thank you so much for your help! I very much appreciate it.


"Max" wrote:

Assume your source data table is in Roster, cols A to H,
where data starts from row 8 down to row 100 (say)

In your other sheet,
Put in say, J8:
=IF(Roster!$A8="I","",IF(AND(Roster!$A8="A",Roster !$H8="Y"),ROWS($1:1),""))
Leave J1:J7 empty. This is the extraction criteria col, which is spun-off
your earlier thread.

Put in K8:
=IF(ROWS($1:1)COUNT($J$8:$J$100),"",INDEX(Roster! A$8:A$100,SMALL($J$8:$J$100,ROWS($1:1))))
Copy K8 across to R8. Select J8:R8, copy down. Minimize/hide col J. Cols K
to R will return the required lines from Roster which satisfy the criteria,
with all lines neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Wilma" wrote:
I am trying to link data from one worksheet to another using the IF formula.
The first worksheet (roster) includes student information, status (active or
inactive) and assessment units completed (designated as Y or N for each
unit). The subsequent worsheets include the data for each unit.

With the help of Max--I used the following formula in the second worksheet
to return a value only if the student was active and had completed the unit:

=IF(Roster!$A9="I","",IF(AND(Roster!$A9="A",Roster !$H9="Y"),Roster!B9,""))

However, if a student is inactive (I) --a blank cell is returned. Is there
any way for the values of only the active students (A) to appear on the
worksheet sequentialy (without the blank cells)?

Your help is greatly appreciated!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default IF formula returns blank cells--only want values to show

I got it working! YEAH!

I realized after I wrote my last post that all I had to do was move the
formula to the column I wanted and it worked beautifully.

Max--you are super wonderful--thank you so much for your help!

"Wilma" wrote:

I guess perhaps I was not clear in my question--or perhaps it is not possible
to do what I am hoping to accomplish. If a student is inactive (I) --i am
getting a blank cell (or row). What I am trying to achieve is for the data
of only the active students (A) to appear in the second worksheet.

The formula below gave me the values (list of active students) but in a
different column than where I wanted it to appear.

I hope this is clear--please let me know if more info is needed.

Thank you so much for your help! I very much appreciate it.


"Max" wrote:

Assume your source data table is in Roster, cols A to H,
where data starts from row 8 down to row 100 (say)

In your other sheet,
Put in say, J8:
=IF(Roster!$A8="I","",IF(AND(Roster!$A8="A",Roster !$H8="Y"),ROWS($1:1),""))
Leave J1:J7 empty. This is the extraction criteria col, which is spun-off
your earlier thread.

Put in K8:
=IF(ROWS($1:1)COUNT($J$8:$J$100),"",INDEX(Roster! A$8:A$100,SMALL($J$8:$J$100,ROWS($1:1))))
Copy K8 across to R8. Select J8:R8, copy down. Minimize/hide col J. Cols K
to R will return the required lines from Roster which satisfy the criteria,
with all lines neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Wilma" wrote:
I am trying to link data from one worksheet to another using the IF formula.
The first worksheet (roster) includes student information, status (active or
inactive) and assessment units completed (designated as Y or N for each
unit). The subsequent worsheets include the data for each unit.

With the help of Max--I used the following formula in the second worksheet
to return a value only if the student was active and had completed the unit:

=IF(Roster!$A9="I","",IF(AND(Roster!$A9="A",Roster !$H9="Y"),Roster!B9,""))

However, if a student is inactive (I) --a blank cell is returned. Is there
any way for the values of only the active students (A) to appear on the
worksheet sequentialy (without the blank cells)?

Your help is greatly appreciated!


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
sumif returns blank if all cells blank Heliocracy Excel Worksheet Functions 7 January 19th 09 08:59 PM
Formula to find equal values with blank cells hilltop55 Excel Discussion (Misc queries) 5 March 22nd 07 09:12 PM
sum of blank cells returns zeros Mar_W Excel Worksheet Functions 7 November 28th 06 05:53 PM
Formula that returns Col A data in Col B, but omitting blank cells SteveC Excel Worksheet Functions 7 January 25th 06 06:48 PM
How do you nest the following formula to show blank cells JV Excel Worksheet Functions 3 August 6th 05 06:26 PM


All times are GMT +1. The time now is 10:22 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"