Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Hiding data in a range of cells

I am seting up a spreadsheet that works like a bank statement, So from
ranges g 6 through g29 i have a balance figure. But i will be adding
transactions to this as i go along through the month. So in cell G7 i have
the formula:
=SUM(G8-F9+E9) and that is then dragged down so htat all the cells to g29
contain this formula.

However they all show the data in the cell above it i.e. cell g8 shows the
amount in g7 and so on. Is there a way to hide this data until i need to
fill the cell with new data?

I hope that you undertand the question its a bit drawn out, and maybe
confusing, if so i apologise.

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Hiding data in a range of cells

Hide them with blanks:

Say we are entering numbers in column A & B
In column C we have:

=A1+B1 and copied down. For rows that have no values in A or B, column C
shows 0. If we want C to be blank if either A or B is blank, then:

=IF(OR((A1=""),(B1="")),"",A1+B1)
--
Gary''s Student - gsnu200767


"Dobbin0_4" wrote:

I am seting up a spreadsheet that works like a bank statement, So from
ranges g 6 through g29 i have a balance figure. But i will be adding
transactions to this as i go along through the month. So in cell G7 i have
the formula:
=SUM(G8-F9+E9) and that is then dragged down so htat all the cells to g29
contain this formula.

However they all show the data in the cell above it i.e. cell g8 shows the
amount in g7 and so on. Is there a way to hide this data until i need to
fill the cell with new data?

I hope that you undertand the question its a bit drawn out, and maybe
confusing, if so i apologise.

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 17
Default Hiding data in a range of cells

Ok so I got the formula you gave me working. But there is a small problem i
am trying to use data from the cell above in my formula. so it looks like
this:

=c1-b2+a2

working with the formula you suggested is ok till i add "c1" to the formula
like the example below:

=IF(OR((A1="0"),(B1="0")),"",C1-A1+B1)

Because the data in cell c1 is copied down and i am back to where i started!
:(

anyone else who can help with this. I would be grateful or if Gary Student
has any other ideas , again thanks

"Gary''s Student" wrote:

Hide them with blanks:

Say we are entering numbers in column A & B
In column C we have:

=A1+B1 and copied down. For rows that have no values in A or B, column C
shows 0. If we want C to be blank if either A or B is blank, then:

=IF(OR((A1=""),(B1="")),"",A1+B1)
--
Gary''s Student - gsnu200767


"Dobbin0_4" wrote:

I am seting up a spreadsheet that works like a bank statement, So from
ranges g 6 through g29 i have a balance figure. But i will be adding
transactions to this as i go along through the month. So in cell G7 i have
the formula:
=SUM(G8-F9+E9) and that is then dragged down so htat all the cells to g29
contain this formula.

However they all show the data in the cell above it i.e. cell g8 shows the
amount in g7 and so on. Is there a way to hide this data until i need to
fill the cell with new data?

I hope that you undertand the question its a bit drawn out, and maybe
confusing, if so i apologise.

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 39
Default Hiding data in a range of cells

Dobbin0_4,
You can add macros and buttons to your sheet to hide/show all the data on
your sheet, until you need to edit it, such as:

Macro#1:

Sub HideRows()
'
Range("A6:G100").Select
Selection.EntireRow.Hidden = True
Range("A1").Select

End Sub

Macro#2:

Sub ShowRows()
'
Range("A6:G100").Select
Selection.EntireRow.Hidden = False
Range("A1").Select
End Sub

Or just hide the column:

Macro#3:

Sub HideColumn()

Columns("G:G").Select
Selection.EntireColumn.Hidden = True
Range("A1").Select
End Sub

Macro#4:

Sub ShowColumn()
'
Columns("G:G").Select
Selection.EntireColumn.Hidden = False
Range("A1").Select
End Sub

You need to adjust the Range information to fit you needs. I am new at
macros, so I had to create to of them. Some one more experienced with them
should be able to, show you how to combine the hide/show macro, so a single
button can be used, to either hide/show rows or columns.

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) <message rule
<<Previous Text Snipped to Save Bandwidth When Appropriate


"Dobbin0_4" wrote in message
...
Ok so I got the formula you gave me working. But there is a small problem i
am trying to use data from the cell above in my formula. so it looks like
this:

=c1-b2+a2

working with the formula you suggested is ok till i add "c1" to the formula
like the example below:

=IF(OR((A1="0"),(B1="0")),"",C1-A1+B1)

Because the data in cell c1 is copied down and i am back to where i started!
:(

anyone else who can help with this. I would be grateful or if Gary Student
has any other ideas , again thanks

"Gary''s Student" wrote:

Hide them with blanks:

Say we are entering numbers in column A & B
In column C we have:

=A1+B1 and copied down. For rows that have no values in A or B, column C
shows 0. If we want C to be blank if either A or B is blank, then:

=IF(OR((A1=""),(B1="")),"",A1+B1)
--
Gary''s Student - gsnu200767


"Dobbin0_4" wrote:

I am seting up a spreadsheet that works like a bank statement, So from
ranges g 6 through g29 i have a balance figure. But i will be adding
transactions to this as i go along through the month. So in cell G7 i
have
the formula:
=SUM(G8-F9+E9) and that is then dragged down so htat all the cells to
g29
contain this formula.

However they all show the data in the cell above it i.e. cell g8 shows
the
amount in g7 and so on. Is there a way to hide this data until i need
to
fill the cell with new data?

I hope that you undertand the question its a bit drawn out, and maybe
confusing, if so i apologise.

Thanks in advance



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Hiding data in a range of cells

Use the same approach:
=IF(OR((A2="0"),(B2="0"),(A2=""),(B2=""),(C1="0"), (C1="")),"",C1-A2+B2)

The key is to test ALL of the values that you need. If ANY are zero or
missing, then return blank
--
Gary''s Student - gsnu200769


"Dobbin0_4" wrote:

Ok so I got the formula you gave me working. But there is a small problem i
am trying to use data from the cell above in my formula. so it looks like
this:

=c1-b2+a2

working with the formula you suggested is ok till i add "c1" to the formula
like the example below:

=IF(OR((A1="0"),(B1="0")),"",C1-A1+B1)

Because the data in cell c1 is copied down and i am back to where i started!
:(

anyone else who can help with this. I would be grateful or if Gary Student
has any other ideas , again thanks

"Gary''s Student" wrote:

Hide them with blanks:

Say we are entering numbers in column A & B
In column C we have:

=A1+B1 and copied down. For rows that have no values in A or B, column C
shows 0. If we want C to be blank if either A or B is blank, then:

=IF(OR((A1=""),(B1="")),"",A1+B1)
--
Gary''s Student - gsnu200767


"Dobbin0_4" wrote:

I am seting up a spreadsheet that works like a bank statement, So from
ranges g 6 through g29 i have a balance figure. But i will be adding
transactions to this as i go along through the month. So in cell G7 i have
the formula:
=SUM(G8-F9+E9) and that is then dragged down so htat all the cells to g29
contain this formula.

However they all show the data in the cell above it i.e. cell g8 shows the
amount in g7 and so on. Is there a way to hide this data until i need to
fill the cell with new data?

I hope that you undertand the question its a bit drawn out, and maybe
confusing, if so i apologise.

Thanks in advance



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 17
Default Hiding data in a range of cells

Thanks that really helped.

"Gary''s Student" wrote:

Use the same approach:
=IF(OR((A2="0"),(B2="0"),(A2=""),(B2=""),(C1="0"), (C1="")),"",C1-A2+B2)

The key is to test ALL of the values that you need. If ANY are zero or
missing, then return blank
--
Gary''s Student - gsnu200769


"Dobbin0_4" wrote:

Ok so I got the formula you gave me working. But there is a small problem i
am trying to use data from the cell above in my formula. so it looks like
this:

=c1-b2+a2

working with the formula you suggested is ok till i add "c1" to the formula
like the example below:

=IF(OR((A1="0"),(B1="0")),"",C1-A1+B1)

Because the data in cell c1 is copied down and i am back to where i started!
:(

anyone else who can help with this. I would be grateful or if Gary Student
has any other ideas , again thanks

"Gary''s Student" wrote:

Hide them with blanks:

Say we are entering numbers in column A & B
In column C we have:

=A1+B1 and copied down. For rows that have no values in A or B, column C
shows 0. If we want C to be blank if either A or B is blank, then:

=IF(OR((A1=""),(B1="")),"",A1+B1)
--
Gary''s Student - gsnu200767


"Dobbin0_4" wrote:

I am seting up a spreadsheet that works like a bank statement, So from
ranges g 6 through g29 i have a balance figure. But i will be adding
transactions to this as i go along through the month. So in cell G7 i have
the formula:
=SUM(G8-F9+E9) and that is then dragged down so htat all the cells to g29
contain this formula.

However they all show the data in the cell above it i.e. cell g8 shows the
amount in g7 and so on. Is there a way to hide this data until i need to
fill the cell with new data?

I hope that you undertand the question its a bit drawn out, and maybe
confusing, if so i apologise.

Thanks in advance

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
autofilter is hiding cells outisde of the range I am trying to fil dpolking Excel Discussion (Misc queries) 1 October 1st 07 08:31 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
Hiding rows in a range based on TRUE/FALSE value in each row michaelberrier Excel Discussion (Misc queries) 1 December 28th 06 10:33 PM
How can I hide a range of columns without hiding charts there? dbsavoy Charts and Charting in Excel 2 August 31st 06 04:30 PM
Using Absoloute Cells And Hiding Data xyster Excel Discussion (Misc queries) 0 April 26th 06 09:45 AM


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