Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TanyaE
 
Posts: n/a
Default Omit blank cells from function results

I have 6 sheets in my workbook. Sheet 1 is the main database of customers,
customer account #, phone number and tonnes of grain, etc. The other 5 sheets
have been categorized into different types of grain (i.e. spring wheat,
durum, barley, etc.). I have created a formula to copy the customer
information and grain tonnes from Sheet 1 into each of the corresponding 5
sheets. An example of one of my formulas looks like this:
IF(Main!F60,Main!B6," "). My formula works fine, except that my problem is
that if the first 20 customers didn't have spring wheat, then it will display
20 blank rows on my spring wheat sheet. How can I get it to omit blank cells
from my results?
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Tanya

The quick answer to your question would be to perform a Sort on each sheet
using Customer as the sort key.
All the Blank rows will move to the bottom of the list.

Perhaps you could consider other methods to achieve your desired result.
Rather than having separate sheets, you could use Autofilter.
Highlight your headings and choose DataFilterAutofilter you could then
filter by type to show the list of Customers growing Durum for example.
If you need totals of tonnages etc. for type, then I would insert a few rows
at the top of the sheet and in the cell immediately above tonnage enter
=SUBTOTAL(9,F4:F1000) or whatever the correct range would be to cover the
maxiumum range of data, for whatever column holds the tonnages.

You might also care to look at the use of Pivot Tables.
An excellent starting point would be
http://peltiertech.com/Excel/Pivots/pivotstart.htm

--
Regards

Roger Govier


"TanyaE" wrote in message
...
I have 6 sheets in my workbook. Sheet 1 is the main database of customers,
customer account #, phone number and tonnes of grain, etc. The other 5
sheets
have been categorized into different types of grain (i.e. spring wheat,
durum, barley, etc.). I have created a formula to copy the customer
information and grain tonnes from Sheet 1 into each of the corresponding 5
sheets. An example of one of my formulas looks like this:
IF(Main!F60,Main!B6," "). My formula works fine, except that my problem
is
that if the first 20 customers didn't have spring wheat, then it will
display
20 blank rows on my spring wheat sheet. How can I get it to omit blank
cells
from my results?



  #3   Report Post  
TanyaE
 
Posts: n/a
Default

Thanks for your quick response, but I was kind of hoping for a less "manual"
way of getting the same result. Is that possible?

"Roger Govier" wrote:

Hi Tanya

The quick answer to your question would be to perform a Sort on each sheet
using Customer as the sort key.
All the Blank rows will move to the bottom of the list.

Perhaps you could consider other methods to achieve your desired result.
Rather than having separate sheets, you could use Autofilter.
Highlight your headings and choose DataFilterAutofilter you could then
filter by type to show the list of Customers growing Durum for example.
If you need totals of tonnages etc. for type, then I would insert a few rows
at the top of the sheet and in the cell immediately above tonnage enter
=SUBTOTAL(9,F4:F1000) or whatever the correct range would be to cover the
maxiumum range of data, for whatever column holds the tonnages.

You might also care to look at the use of Pivot Tables.
An excellent starting point would be
http://peltiertech.com/Excel/Pivots/pivotstart.htm

--
Regards

Roger Govier


"TanyaE" wrote in message
...
I have 6 sheets in my workbook. Sheet 1 is the main database of customers,
customer account #, phone number and tonnes of grain, etc. The other 5
sheets
have been categorized into different types of grain (i.e. spring wheat,
durum, barley, etc.). I have created a formula to copy the customer
information and grain tonnes from Sheet 1 into each of the corresponding 5
sheets. An example of one of my formulas looks like this:
IF(Main!F60,Main!B6," "). My formula works fine, except that my problem
is
that if the first 20 customers didn't have spring wheat, then it will
display
20 blank rows on my spring wheat sheet. How can I get it to omit blank
cells
from my results?




  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Tanya

There was a posting a little while ago by Max which addressed a similar
problem.
I think you would need to have your field F6 (or a copy of it) as the first
column in your master list for it to work as per the example, but take a
look at

Here's the link to a sample file with the implemented construct:
http://www.savefile.com/files/9975448
File: Automatically sorting data_LeeHutch_misc.xls
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895



--
Regards

Roger Govier


"TanyaE" wrote in message
...
Thanks for your quick response, but I was kind of hoping for a less
"manual"
way of getting the same result. Is that possible?

"Roger Govier" wrote:

Hi Tanya

The quick answer to your question would be to perform a Sort on each
sheet
using Customer as the sort key.
All the Blank rows will move to the bottom of the list.

Perhaps you could consider other methods to achieve your desired result.
Rather than having separate sheets, you could use Autofilter.
Highlight your headings and choose DataFilterAutofilter you could then
filter by type to show the list of Customers growing Durum for example.
If you need totals of tonnages etc. for type, then I would insert a few
rows
at the top of the sheet and in the cell immediately above tonnage enter
=SUBTOTAL(9,F4:F1000) or whatever the correct range would be to cover
the
maxiumum range of data, for whatever column holds the tonnages.

You might also care to look at the use of Pivot Tables.
An excellent starting point would be
http://peltiertech.com/Excel/Pivots/pivotstart.htm

--
Regards

Roger Govier


"TanyaE" wrote in message
...
I have 6 sheets in my workbook. Sheet 1 is the main database of
customers,
customer account #, phone number and tonnes of grain, etc. The other 5
sheets
have been categorized into different types of grain (i.e. spring wheat,
durum, barley, etc.). I have created a formula to copy the customer
information and grain tonnes from Sheet 1 into each of the
corresponding 5
sheets. An example of one of my formulas looks like this:
IF(Main!F60,Main!B6," "). My formula works fine, except that my
problem
is
that if the first 20 customers didn't have spring wheat, then it will
display
20 blank rows on my spring wheat sheet. How can I get it to omit blank
cells
from my results?






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
Using Pivot Table Function to Summarize David Excel Discussion (Misc queries) 0 July 8th 05 04:46 AM
Condensing a list/range with blank cells to a new list/range without blanks KR Excel Worksheet Functions 4 July 5th 05 04:23 PM
Counting blank and filled cells within a range. greg7468 Excel Discussion (Misc queries) 3 June 28th 05 10:41 PM
Macro to omit blank cells needed Emece Excel Worksheet Functions 4 June 21st 05 08:07 PM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM


All times are GMT +1. The time now is 12:48 PM.

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

About Us

"It's about Microsoft Excel"