Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2007, 11:14 PM
Junior Member
 
Join Date: Oct 2007
Posts: 7
iTrader: (0)
John1889 is on a distinguished road
Question How to add PivotTable drop down selector to another tab?

Hi,
I have a pivot table on Sheet 1 and a report that references it on Sheet 2. I would like to be able to change the pivot table variables from Sheet 2 instead of having to go back to Sheet 1. Is there a way to duplicate the drop down selectors from the pivot table on Sheet 1 onto Sheet 2? Any suggestions would be deeply appreciated.
Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-21-2007, 12:56 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
iTrader: (0)
MattJM is on a distinguished road
Default Filtering Rows

Hi,
I have a spreadsheet in which I am trying to Filter Out Contractors. Basically the Column can have several values. It can either be blank, PRE or have another value which can vary. I want to be able to filter rows which are neither Blank or Pre. The Values are in column H. I created a helper column in column I with the following formula =H2="". I then created another helper column in column J with the formula =H2<>"PRE". Both formulas work OK. My question is how do I combine the two formulas so that I end up with the rows which do not contain Blank or Pre. I tried =H4="" or H4="PRE" but I get a message saying that my formula contains an error.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-24-2007, 01:17 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

Hi,
Try one of the below mentioned method.

1: Use code and the worksheet change event to take a value chosen from a Data Validation drop down and input that into the pivottable

2: put the pivottable on the same sheet as the report but hide all the rows of it except for the dropdown - NB - this will only work if the number of rows / columns in your pivottable is fairly static.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-24-2007, 01:18 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

Hi,
Try the following formula

=IF(H2="","",IF(H2="pre","",H2))

this checks H2 for a blank, if it is it populates the cell with nothing (""). If it isn't blank it then checks for "pre", if it is it populates the cell with nothing (""). If the contents passes both of these checks the formula will populate the cell with the contents of H2.
Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-28-2007, 02:22 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
iTrader: (0)
MattJM is on a distinguished road
Default

Hi BurgoEng I was out of city on some personal reasons, thanks a lot for your response. I will try it out and will let you know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-28-2007, 02:47 AM
Junior Member
 
Join Date: Oct 2007
Posts: 3
iTrader: (0)
YukonOne is on a distinguished road
Default Excel - Simple Macro Question

Hi,
I need help in creating a simple macro that copies the cell that is to the left of my current cell, into my current cell.

When I record the macro it looks like this;
Range("C11").Select
Selection.Copy
Range("D11").Select
ActiveSheet.Paste

My problem is, the macro has hard coded reference to the cells that I was on when I recorded the macro (i.e. C11 & D11). How would I change this to say 'current cell' and 'cell to the left'. Any suggestions would be greatly appreciated.
Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-28-2007, 02:58 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

Hi,
Try this CODE out:
selection.offset(0,-1).copy selection

Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-28-2007, 08:31 PM
Junior Member
 
Join Date: Oct 2007
Posts: 7
iTrader: (0)
John1889 is on a distinguished road
Default

Thank you BargoEng, I will try it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-11-2007, 05:18 AM
Junior Member
 
Join Date: Oct 2007
Posts: 7
iTrader: (0)
John1889 is on a distinguished road
Default Need a VBA code for numbering lines

Hi,
How to write VBA code to select a range of cells say..A1 to A15 (I can do that part) and then number the cells in sequential order i.e.-1,2,3,..etc.
Thanks for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 12-07-2007, 09:14 PM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

Hi,
Use:

Sub NumberCells()
Dim i As Long
For i = 1 To Selection.Rows.Count
Selection.Cells(i, 1) = i
Next i
End Sub


Select the cells first, then run the macro. I assumed that you wanted to number only cells in the first column of the selection.
In addition to that and depending on exactly what you are trying to do:

Range("A1").Value = 1
Range("A1").AutoFill Range("A1:A15"), xlFillSeries


Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 07:12 AM.