Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MickJJ
 
Posts: n/a
Default Using arrays or range in IF function - HELP PLS

I have a workbook with 2 worksheets. Wksht 1 = Checklist, Wksht 2 = Completion.

In cloumn A (Wksht1) I have a list of Y or N for range A2:A14 and column B
is a range of Items. eg:

COL A COL B
Y LOCAL
Y HIGHWAYS
N MINING
Y DRAINAGE

In column A (wrksht 2) I have the following formula:

=IF(Checklist!A2= "Y",Checklist!B2," ")
I then copied this down the column to othe rows

Where the logical test is true I do get the correct value from col B
but if the logical test is false then I just get a blank line.

How do I get rid of the blanklines and end up with just the 'true' values.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Using arrays or range in IF function - HELP PLS

You could take the result (with blank rows), use Copy followed by Paste
Special-Values to change formulas to values. Then use Sort.
Without knowing more of the purpose I cannot make any suggestion
best wishes

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"MickJJ" wrote in message
...
I have a workbook with 2 worksheets. Wksht 1 = Checklist, Wksht 2 =
Completion.

In cloumn A (Wksht1) I have a list of Y or N for range A2:A14 and column B
is a range of Items. eg:

COL A COL B
Y LOCAL
Y HIGHWAYS
N MINING
Y DRAINAGE

In column A (wrksht 2) I have the following formula:

=IF(Checklist!A2= "Y",Checklist!B2," ")
I then copied this down the column to othe rows

Where the logical test is true I do get the correct value from col B
but if the logical test is false then I just get a blank line.

How do I get rid of the blanklines and end up with just the 'true' values.



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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
use address function to indicate range in calculation Mayo Excel Worksheet Functions 3 February 6th 06 06:41 PM
ExceL Options: Add a chart for Box-plot type and Range function sebafishman Excel Discussion (Misc queries) 1 December 21st 05 08:37 PM
Limiting the range of a lookup function Dorn Excel Worksheet Functions 5 November 8th 05 01:59 AM
creating function (vba) with range arguments Fredouille Excel Worksheet Functions 2 September 12th 05 11:01 AM


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