Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to hide rows and/or columns using a formula in excel

I have created a bid template that calculates a price based on the count that
I give it
Example: 22 item abc $45 $990
12 item cba $12
$144
if the item count is 0, I would like it to hide that row, and when I print
the bid, I would like to have the option to hide the columns for unit price
and total price for all items.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default How to hide rows and/or columns using a formula in excel

you can use datafilter to hide rows. Suggest a macro to hide the rows and
columns based on your criteria.

for each c in selection
if c=1 then rows("1:5").hidden=true
etc
next

--
Don Guillett
SalesAid Software

"Sqwilly" wrote in message
...
I have created a bid template that calculates a price based on the count

that
I give it
Example: 22 item abc $45

$990
12 item cba $12
$144
if the item count is 0, I would like it to hide that row, and when I print
the bid, I would like to have the option to hide the columns for unit

price
and total price for all items.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to hide rows and/or columns using a formula in excel

I'm trying to do a similar thing ...


Is it feasible to execute a similar macro from within a if() function?

Luke.

"Don Guillett" wrote in message
...
you can use datafilter to hide rows. Suggest a macro to hide the rows and
columns based on your criteria.

for each c in selection
if c=1 then rows("1:5").hidden=true
etc
next

--
Don Guillett
SalesAid Software

"Sqwilly" wrote in message
...
I have created a bid template that calculates a price based on the count

that
I give it
Example: 22 item abc $45

$990
12 item cba $12
$144
if the item count is 0, I would like it to hide that row, and when I
print
the bid, I would like to have the option to hide the columns for unit

price
and total price for all items.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default How to hide rows and/or columns using a formula in excel

Formulas can't do that kind of thing.

But there are workarounds. There are worksheet events that can be on the
lookout for a value in a cell. And that can be just as effective.



Luke Vogel wrote:

I'm trying to do a similar thing ...

Is it feasible to execute a similar macro from within a if() function?

Luke.

"Don Guillett" wrote in message
...
you can use datafilter to hide rows. Suggest a macro to hide the rows and
columns based on your criteria.

for each c in selection
if c=1 then rows("1:5").hidden=true
etc
next

--
Don Guillett
SalesAid Software

"Sqwilly" wrote in message
...
I have created a bid template that calculates a price based on the count

that
I give it
Example: 22 item abc $45

$990
12 item cba $12
$144
if the item count is 0, I would like it to hide that row, and when I
print
the bid, I would like to have the option to hide the columns for unit

price
and total price for all items.




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to hide rows and/or columns using a formula in excel

Thanks Dave ...

Me thinks more investigation is needed.

Cheers.

"Dave Peterson" wrote in message
...
Formulas can't do that kind of thing.

But there are workarounds. There are worksheet events that can be on the
lookout for a value in a cell. And that can be just as effective.



Luke Vogel wrote:

I'm trying to do a similar thing ...

Is it feasible to execute a similar macro from within a if() function?

Luke.

"Don Guillett" wrote in message
...
you can use datafilter to hide rows. Suggest a macro to hide the rows
and
columns based on your criteria.

for each c in selection
if c=1 then rows("1:5").hidden=true
etc
next

--
Don Guillett
SalesAid Software

"Sqwilly" wrote in message
...
I have created a bid template that calculates a price based on the
count
that
I give it
Example: 22 item abc $45
$990
12 item cba $12
$144
if the item count is 0, I would like it to hide that row, and when I
print
the bid, I would like to have the option to hide the columns for unit
price
and total price for all items.



--

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
Hide columns but not the top rows Oceangate Excel Discussion (Misc queries) 8 November 25th 08 05:46 PM
Excel 2007 - Hide & Unhide Columns/Rows leahl Excel Discussion (Misc queries) 8 November 5th 08 09:17 PM
Hide columns and rows delete automatically Excel Worksheet Functions 2 September 25th 07 12:49 AM
How do I delete columns and rows in Excel, not just hide them Eddie Excel Discussion (Misc queries) 2 November 23rd 05 05:11 PM
Hide Rows and Columns Stuart Steven Excel Programming 5 July 17th 04 04:46 AM


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