| Using named range to extend print area for variable number of columns |
|
 |
Index ‹ Excel ‹ worksheet functions
|
- Previous
- 1
- Excel Misc >> Need formula Help soonB C E G
2 SubtotalRetail SubtotalCost SubtotalComsn SubtotalGrossProfit
3 =Formula(j7:j10) =Formula(K7:K10) =Formula(l7:l10) =Forml(m7:m10)
A B C D I J
K L M
6 Date PrdoctID QtyOut QtyNow Descpn Retail Cost CmsnGainLoss
7 26.11.07 200700105 2 8 Stonefgr 1300.00 500.00
01600.00
8 26.11.07 200700106 11 0 Stonefgr 3000.00 600.00
26400.00
9 26.11.07 200700068 2 22 Textiles 600.00 320.00
00560.00
1026.11.07 200700249 1 0 Paintings 21000.00 7000.00
14000.00
Sir, just same format of my worksheet. I need a formula in B3, C3, E3 and ...
I want to see what is the exact Gprofit on particular date after data>Filter
of Date Column
I hope I now cleared to you all thing and you will better understand.
Regards
RRS
- 2
- worksheet functions >> Search column for value and return TRUE or FALSEHi!
I function that would search through column of text values (range with 1
column) and return TRUE if column contains value given as criteria or FALSE
if there is no such value in given column
For example i have range A1:A10 and i want to find out whether this range
contains value x or - x
- 3
- worksheet functions >> Sheets don't always calculate automaticallyHi all
When I enter data Excel doesn't always calculate automatically - If I hit F9
when prompted at the bottom of the screen the worksheet updates OK.
There doesn't seem to be a specific pattern - it's not always the same cells
that do it.
I have calculate automatically checked on the options tab.
Thanks in advance
Andy
- 4
- 5
- worksheet functions >> Force "+" signI was wondering if there was a way to create a number format that displays the
plus sign on positive numbers (and the minus sign on negative numbers).
Thanx,
-plh
--
I keep hitting "Esc" -- but I'm still here!
- 6
- Excel Programming >> Problems with copying and pasting rangeHi,
I have developed the macro below to take a number from a dataset (in
"Sheet1"), copy and paste it into a model (in "Sheet2") and then copy an
paste the model output back into a different column in the original dataset
(in "Sheet1").
Sub Macro()
Dim cell As Range
For Each cell In Worksheets("Sheet1").Range("Range1")
cell.Resize(1, 1).Copy
With Worksheets("Sheet1")
.Range("Cell1").PasteSpecial Paste:=xlValues, Transpose:=True
cell.Offset(0, 9).Value = .Range("Cell2").Value
End With
Next
End Sub
Here is my issue, rather than simply pasting one value from "Cell2" back
into "Sheet1", I would like to paste a "Range2" back into "Sheet1",
offsetting this value [0,9] from "Range1". However, when I put in a range
rather than a cell-reference in "Cell2", the macro stops working. Does anyone
have any suggestions as to what I am doing wrong?
In advance, thank you very much!
- 7
- worksheet functions >> A calendar calculator template that reflects remaing weeks in a yeHello! :-)
I am trying to create a calendar calc tool that, when I work on a sheet, it:
1) Automatically loads today's date
2) Automatically loads number of pay periods remaining in the plan year
(using a pop down to allow selection of weekly or bi-weekly).
3) Accepts a deduction amount per pay period.
4) Calculates a total annual payroll contribution during the plan year
(based on number of pay periods remaining in the plan year, multiplied by the
deduction).
For Example:
1) Our Plan year: 08./01/05 - 7/31/06
2) Automatically load of today's date: 9/15/05
3) Drop down prompting choice of weekly or bi-weekly pay period: Weekly
3) Remaining pay periods between 9/15/05 and 7/31/05: 46
4) Weekly deduction: $28.00
5) Estimated Maximum Contribution: $1288.00 ($20 * 46 pay periods).
----------------------------
Along the same lines...let's say the goal of the employee to make an annual
maximum of $5000 a year. He wants to know how much he must contribute a pay
period to reach his goal of $5000 within the plan year. Can I create a small
spreadsheet tool that will automatically tell the employee how much he/she
needs to have deducted from his/her paycheck by 7/31/05 in order to reach the
goal of $5000, beginning with payroll of 9/16/05?
This seems like it should be easy, but I cannot get it to work? If you have
an Excel spreadsheet you can send as a template, or if you can describe to
process of creating this, I would be so appreciative!
- 8
- Excel Programming >> Rerieve Images from xls files and save themI have many files contain image in each sheet, (there are 3 sheets each
file) and I want to retrieve the images and save them to jgp files? how
can i do that? please my friend.. i need it immediatelly. due to the due
date..
Thank's
--
blackpassword
------------------------------------------------------------------------
blackpassword's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29357
View this thread: http://www.excelforum.com/showthread.php?threadid=490657
- 9
- Excel Programming >> Createobject for FTPI am trying to send files generated in an excel application to a FTP site
I know how to create an InternetExplorer.application object
Is there documentation on the parameters needed to create a FTP object
(user,password, input directory, output directory...)
Thanks
AG
- 10
- Excel Misc >> List folder names within a directoryHello Gurus and newsgroup users.
Your kind assistance please.
For some time now I have been using Chip Pearsons code to
return a list of file names within a specified location. I
would like to now return a list of folder names.
I cannot find any objects releated to folders.
Is it possible?
Any help would be appreciated.
Kind Regards
Paul
- 11
- Excel Programming >> Page Protection interfering with Hiding Rowshave a sheet that hides groups of rows based on a cell's information.
I'd prefer this to happen automatically through VBA, but currently I'm
stuck using a Toggle Button to hide/unhide these rows.
The problem I run into though is that that toggle button works
brilliantly until I turn on the page protection. Once I turn on the
protection I keep getting errors that the page is protected and can't
be updated.
And due to the fact that the people who will be using this know
absolutely no Excel at all and break formulas on the old sheet
regularly... well, the sheet has to be write-protected.
The code I'm currently using is this:
Sub DENYPASS()
Application.ScreenUpdating = False
Application.EnableEvents = False
If Range("B2") = 1 Then
Rows("11:41").EntireRow.Hidden = True
Rows("42:72").EntireRow.Hidden = False
Else
Rows("11:41").EntireRow.Hidden = False
Rows("42:72").EntireRow.Hidden = True
End If
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
with a private sub to connect it to the Toggle Button
Private Sub passdeny_Click()
DENYPASS
End Sub
- 12
- Excel Misc >> Net profitHi
I have a purchase price in A1 0f 1.12 and a selling price in A2 of 1.95
how do i get the net profit please
RegRDS
mIKE
- 13
- Excel Programming >> Combo box background colourI have a combo box and it is linked to a cell a2.
When I select a value from the combo box drop down list this obviously
changes the value in cell A2. Is it possible to have the background of the
como box automatically change colour depending on the value of cell a2?
e.g. Cell A2 = 1, combo box background = red
Cell A2 = 2, combo box background = green
Cell A2 = 3, combo box background = blue
Thanks for any help
- 14
- Excel Misc >> please replyhi i have a proble
i want to format a cell such that it can accept only 13 digits before the decimal and 9 digits after the decima
kindly repl
srikanth
- 15
- Excel Misc >> Large Pivot Refresh problem Excel 2003I have a large spreadsheet which contains a large pivot
table (183R * 19C) -based on a largish data set (2730R *
11C).
I am unable to refresh this pivot table in Excel 2003 - I
get error message "There are too many records to complete
this operation." The spreadsheet refreshes fine under
Excel 2002 - why not on 2003?
Is this a known problem / is there a workaround (I cannot
reduce the size of the table).
Jon.
|
| Author |
Message |
ITMarketingConsultantPharmacistCA

|
Posted: Thu Apr 10 09:41:24 CDT 2008 |
Top |
worksheet functions >> Using named range to extend print area for variable number of columns
I've used the following method from D. Peterson to automatically set
the print area to extend to the last row which contains actual data.
Now, I'm faced with a similar situation which the 'columns' are now
the variable component.
Rows to be printed begin at A1:A18 and will always include columns A
and B; there may be as many as 40 columns to include, or as few as the
1st two
These are the 2 components of the named ranges which will set the
number of rows(for reference):>>
Insert|Name|Define
Names in workbook: Sheet1!LastRow
Use this formula
Refers to: =LOOKUP(2,1/(Sheet1!$A$1:$A$1000<>""),ROW(Sheet1!$A$1:$A
$1000))
(Make that 1000 big enough to extend past the last possible row.)
Then once more:
Insert|Name|Define
Names in workbook: Sheet1!Print_Area
Use this formula
Refers to: =OFFSET(Sheet1!$A$1,0,0,lastRow,3)
That last 3 represents the last column to print (A:C in my example).
And change the worksheet (sheet1) if necessary (in all the places).>>
Any ideas? I'd like to keep the named range concept if possible
Thanks for any thoughts.
Pierre
Excel485
|
| |
|
| |
 |
Dave

|
Posted: Thu Apr 10 09:41:24 CDT 2008 |
Top |
worksheet functions >> Using named range to extend print area for variable number of columns
Create a new name (Sheet1!LastCol) defined like:
=LOOKUP(2,1/(Sheet1!$1:$1<>""),column(Sheet1!$1:$1))
(where row 1 is the "defining" row -- maybe headers???)
> Then once more:
> Insert|Name|Define
> Names in workbook: Sheet1!Print_Area
> Use this formula
> Refers to: =OFFSET(Sheet1!$A$1,0,0,lastRow,LastCol)
And remember not to go into page setup to override your Print_Area.
Pierre wrote:
>
> I've used the following method from D. Peterson to automatically set
> the print area to extend to the last row which contains actual data.
>
> Now, I'm faced with a similar situation which the 'columns' are now
> the variable component.
> Rows to be printed begin at A1:A18 and will always include columns A
> and B; there may be as many as 40 columns to include, or as few as the
> 1st two
>
> These are the 2 components of the named ranges which will set the
> number of rows(for reference):>>
>
> Insert|Name|Define
> Names in workbook: Sheet1!LastRow
> Use this formula
> Refers to: =LOOKUP(2,1/(Sheet1!$A$1:$A$1000<>""),ROW(Sheet1!$A$1:$A
> $1000))
>
> (Make that 1000 big enough to extend past the last possible row.)
>
> Then once more:
> Insert|Name|Define
> Names in workbook: Sheet1!Print_Area
> Use this formula
> Refers to: =OFFSET(Sheet1!$A$1,0,0,lastRow,3)
>
> That last 3 represents the last column to print (A:C in my example).
>
> And change the worksheet (sheet1) if necessary (in all the places).>>
>
> Any ideas? I'd like to keep the named range concept if possible
> Thanks for any thoughts.
>
> Pierre
--
Dave Peterson
|
| |
|
| |
 |
Pierre

|
Posted: Thu Apr 10 10:22:09 CDT 2008 |
Top |
worksheet functions >> Using named range to extend print area for variable number of columns
On Apr 10, 9:41=A0am, Dave Peterson <EMail@HideDomain.com> wrote:
> Create a new name (Sheet1!LastCol) defined like:
> =3DLOOKUP(2,1/(Sheet1!$1:$1<>""),column(Sheet1!$1:$1))
> (where row 1 is the "defining" row -- maybe headers???)
>
> > Then once more:
> > Insert|Name|Define
> > Names in workbook: =A0Sheet1!Print_Area
> > Use this formula
> > Refers to: =A0=3DOFFSET(Sheet1!$A$1,0,0,lastRow,LastCol)
>
> And remember not to go into page setup to override your Print_Area.
>
>
>
> >
> Dave Peterson- Hide quoted text -
>
> - Show quoted text -
Dave, thanks so much, once again!
Pierre
|
| |
|
| |
 |
Dave

|
Posted: Thu Apr 10 11:51:47 CDT 2008 |
Top |
worksheet functions >> Using named range to extend print area for variable number of columns
You're welcome.
This is really a neat technique, huh?
(I saw it in one of the free files MS offers.)
Pierre wrote:
>
> On Apr 10, 9:41 am, Dave Peterson <EMail@HideDomain.com> wrote:
> > Create a new name (Sheet1!LastCol) defined like:
> > =LOOKUP(2,1/(Sheet1!$1:$1<>""),column(Sheet1!$1:$1))
> > (where row 1 is the "defining" row -- maybe headers???)
> >
> > > Then once more:
> > > Insert|Name|Define
> > > Names in workbook: Sheet1!Print_Area
> > > Use this formula
> > > Refers to: =OFFSET(Sheet1!$A$1,0,0,lastRow,LastCol)
> >
> > And remember not to go into page setup to override your Print_Area.
> >
>
> >
> >
> > >
> > Dave Peterson- Hide quoted text -
> >
> > - Show quoted text -
>
> Dave, thanks so much, once again!
>
> Pierre
--
Dave Peterson
|
| |
|
| |
 |
| |
 |
Index ‹ Excel ‹ worksheet functions |
- Next
- 1
- Excel Misc >> double zerosi have a column where users will enter seconds. however, if the value i
'00' it shows up at '0'. i made a custom format for the column using
'0#' format, so every other entry works. any ideas?
btw, a later column uses this column for calculations so making it tex
format will not solve the problem.
thanks,
jaso
--
Message posted from http://www.ExcelForum.com
- 2
- worksheet functions >> degrees formulaon a calculator I would
divide the smaller number by the larger number and then inv tan to get
the degrees
what is the simplest way to get the degrees from a spreadsheet formula,
I have found one way, by getting the two numbers and using radians and
soforth and finally getting my degrees after a couple of steps, there
should be a way to just take the two numbers and formulate degrees
from them
- 3
- Excel Programming >> Hyperlinks on Protected SheetsHi,
I have a protected sheet with some hyperlinks on it. However I am unable to
click on any of the hyperlinks.
The only protection option with anything to do with hyperlinks is the Allow
Insert Hyperlinks option, which has no effect.
My goal is to have a protected sheet with formulas hidden, yet the user can
click on hyperlinks.
BTW the Hyperlinks are inserted as worksheet formulas if that matters...
Thanks
Richard
- 4
- Excel >> how can i do a vlookup with sum ?how can i do a vlookup with sum ?
e.g.
Given this table
a 1
b 30
b 31
c 2
I want to look for all occurrences of "b" in the first column, and
return the sum of corresponding values in the second column.
So I want the output to be 61
or better, an output of =30+31
TIA
- 5
- Excel Programming >> Word Or Notepad From ExcelGroup,
I'm writing my first big VBA project. This group has helped me
along quite a bit the past few weeks. I'm comparing two Excel
spreadsheets and checking, comparing verifying fields etc. What should
be my error report listing strategy be? I'm guessing the best way is
Word, since Word uses VBA also. Should I open a word document paste an
error then close it until the next error is found? Or should I leave
the Word doc open and paste to it as errors are found? Or should I use
Notepad and open/close or open and then paste... well you get the idea.
Your thoughts.
Tony
--
ajocius
------------------------------------------------------------------------
ajocius's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=17695
View this thread: http://www.excelforum.com/showthread.php?threadid=390078
- 6
- 7
- 8
- 9
- Excel Programming >> Clearing a columnHi all,
This question is in two parts.
1) How do you clear an entire column of date in vb code?
2)Is it possible to clear an entire column excluding some cells withi
that colume? For example;
Lets say i want to clear column "A" but want to exclude "A1" and "A2
from this clear function
Is this possible? How!
Cheers al
--
Message posted from http://www.ExcelForum.com
- 10
- worksheet functions >> Item numbers result in item description in next field in ExcelI am putting a spreadsheet together and I want the item number to
automatically populate the item description in the next field. Can anyone
give me an answer about what syntax I should be using?
For example: In cell B5 I would enter item #123 (I have item #'s in a drop
down) - I would like cell C5 to automatically display the description of 3"
Pipe.
- 11
- 12
- Excel Programming >> Application.DecimalSeparatorHi all,
I use Application.DecimalSeparator in a function to strip characters from a string and leave just a number.
I noticed that, if you have Tools>Options>International, Use system separators checked, this will not be reflected in
Application.DecimalSeparator.
Can anybody tell me what I should use to get that?
Thanks,
--
Kind regards,
Niek Otten
- 13
- Excel Programming >> Excel.exeI have a pc running Win NT and office 2000 excel.exe
sortcut will not work. but if I log on as administrator
it work. err is exception access voilation 0xc00000005
address 0x30026E31
- 14
- 15
- Excel Programming >> excel 2003have a question about Excel 2003. I am a programmer but have never used
Excel for
any programming unitl now. (Note the people who setup these spreadsheets,
are long gone).
I have a workbook that has two tabs on it. I know that there is some of a
connection made a sql server 2000 database and there must be a query to
obtain the infomation that updates the excel 2003 spreadsheet. I know this
happens since I
need to hit the 'update option' for each chart on these tabs.
Now the problem is that there is some kind of a problem, and I need to be
able to solve problems.
Ths can you tell me what I need to do in excel 2003 to determine where the
data is coming from and how the data is obtained. There must be some kind of
a query that is written.
I have figured out that if you click on the 'data' on the menu bar, then
import external data, then import data, and then click data sources this will
give you some kind of a default. If does not show where the data is obtained
from and query is used to populate the excel sheet.
Thanks fo your assistance!
|
|
|