Sum Numbers Depending On Their Source
Mar 25, 2009
I need to sum numbers depending on their source. Consider the following sources
Source .....................#
M D11 24 ......... 5
M D11 23 ......... 6
M D02 25 ........ 7
I want sum of all numbers whose source has D11 in its name (Answer 11). What's the best way of doing so?
View 5 Replies
ADVERTISEMENT
May 18, 2009
It might be very simple, but all I need is if I have data on A1, and i have 3 check boxes labeled: NEW, EXISTING, and ARCHIVED. I want it to automatically check the corresponding boxes. So if "NEW" is typed under A1, it'll check "NEW" box. "EXISTING" will check "EXISTING" check box and so on.
View 4 Replies
View Related
Jun 10, 2014
I'm trying to find out a function that allows me to evenly spread the amounts given a certain start year and quarter and end year and quarter. Let's say, I have 20 dollars and the starts in 3Q/2012 and ends in 2Q/2013. Then, the money should be spread out in four quarters. If the end is in 3Q/2013, then the spread is five quarters, and the amount distribution automatically changes.
Attached is my spreadsheet.
View 4 Replies
View Related
Dec 10, 2012
I want to make continuing serial numbers in excel in order to print labels to be able to track my deliveries. i know i can drag the fill cursor to automatically make it go the next number. however i also want my serial number should represent the month and the day the invoice was printed.
for example i want the serial number should be
column a (Jan 01) column b (Jan 02 ) column c (Jan 03)
a1-01-01 a1-02-01 a1-03-01
a1-01-02 a1-02-02 a1-03-02
a1-01-03 a1-02-03 a1-03-02
The first number represents the month (example -a1 for Jan)
The second number represents the day and
The third number represents the invoice
How can i make that when i pul the cursor down it should continue with the invoice number
However when i continue right it should move the day number?
View 2 Replies
View Related
May 13, 2013
why is pivot table changing numbers to dates. It was fine all along, numbers retained the fromat of source data and now, all numbers in field columns are turning into dates. is there a setting I can change to prevent excel from reformatting numbers to dates?
View 1 Replies
View Related
Apr 1, 2009
Not sure if this can be done, still a rookie at this stuff. Everything works but can something be wrote into code too change list source?
View 5 Replies
View Related
Jan 27, 2014
In a macro I want to automatically insert a formula in several cells. The formula depends on other cells, and I want to be able to manipulate these cells with variables. Here is my code:
[Code] .....
All my variables are declared:
Sheets("DATOS YTD 2014").Cells(I, Semana + 1) is the cell I want to be able to chose due to the variables
Sheets("DATOS YTD 2014").Cells(I, 3) is the reference cell for the VLOOKUP formula, that will vary with I
SheetMonth.Range("B3:W172") is a range in the sheet SheetMonth which is fixed
The error message I receive is the following: "Run-time error 13, Type mismatch"
I precise that the next step is to make the ",6," part in the vlookup formula also variable... but I guess once my current issue is solved this one will be a piece of cake.
View 3 Replies
View Related
Sep 7, 2006
I have a report that was created for 2005 that contains two worksheets: a "source data" worksheet and a " pivot table" worksheet. I cleared out the 2005 data in the "source data" worksheet and replaced it with 2006 data...after this I refreshed the Pivot Table and everything seemed fine. When looking at the file size I noticed that it was almost twice its original size....upon further investigation I found that the Pivot Table was internally holding onto the old source data (the "Show" functionality of the rows/columns in the table lists the 2005 row/column headers as well as the 2006 headers....even though no data from 2005 is shown in the Pivot Table).
Does anyone know how to purge the old data from the internal Pivot Table memory?
I hope this is enough information....let me know if you need more.
Thanks in advance for any help,
Jon
View 9 Replies
View Related
Apr 28, 2008
Below is my code. I need the row source for my combobox to be dynamic. I created a named formula and referenced the formula in my code. It doesn't work.
This is the formula "listname"
=OFFSET(MyList!$C$2,0,0,COUNTA(MyList!$C:$C)-1,1)
Private Sub ComboBox1_Change()
ComboBox1.RowSource = Range("ListName")
End Sub
View 9 Replies
View Related
Mar 17, 2014
Is there any way to directly go to a formula? Instead of searching it through all the sheets? For example, if I have a formula =SUM(Sheet1!A1:A5) is there any way for me to automatically go to the source?
View 7 Replies
View Related
Jan 19, 2008
I would like to retrieve contents of a web page, be it HTML or XML, into VBA variable!
Later, I would chop, cut, parse or extract the data I need.
Both importing as XML or WebQueries is unsatisfactory for a certain number of pages I need. XML has bad schema, WebQuery tells me it can't find any data.
I tried with WinHTTPRequest, but Excel gives me back error "undefined user type" in other words it doesn't recognize that object.
Basically I want the source of web page to become a string in my VBA code. In other words that would be replication of funcionallity of
View 15 Replies
View Related
Oct 29, 2009
The problem is, these identifiers are in no discernable or predictable pattern. I cannot open the page directly in excel, nor can I use the Import Data from Web function (2007) ... results are simply a blank page.
What I thought I could do, then, is automate the procedure that obtains the source code, which I can parse and look for the current date. Once I have the line with the current date, I can extract the unique identifier, then paste it back into a string and resubmit to the browser.
I just can't figure out how to get to the source code... anybody out there have a way to get to it? Since this is going to ultimately be distributed to 20 or so analysts in different countries, I don't think I can use other tools (like the HTML Extractor from Iconico).
View 2 Replies
View Related
Dec 28, 2009
I need to add what specfic cell was modified on the sheet tab "data" or it could refer to the reference in column A for the specific row within the sheet "data"
View 10 Replies
View Related
Feb 8, 2006
I have created some link formula,
Example
CellA1 has ='Corridor Select- Input'!C5.
I was told by a colleague that there is a function in excel that allows me
to auto go to that linkd source. ie if I double click on Cell A1, I can
automatically go to Sheet"CorridorSelect-Input" Cell C5.
View 9 Replies
View Related
Aug 31, 2007
I am trying to set a controlsource property so that when a cell on a worksheeet is changed, the label will also change. However, when I try to set the controlsource I get an error that says :
Could not set the ControlSource property. Invalid property value.
I've tried it with a label in the code,
lblUser.ControlSource = Worksheets("User List").Range("C1")
and I've tried it in the properties window of a textbox, and I cannot get either to work. I've also unprotected the sheet first, thinking that might have something to do with it.
View 5 Replies
View Related
Nov 7, 2011
option 1
sourcedatastring = '\myunc\_WT_.xls'!$A$1:$CI$65536
option 2
sourcedatastring = 'L:\_WT_.xls'!$A$1:$CI$65536
using VBA i do this:-
pvtTable.SourceData = sourcedatastring
only option 2 works.. when i put a UNC drive as a sourcedata the pivot does not like it.. why? is there anyway i can solve that?
I need to put a UNC location as source data in pivottable in VBA but how?
View 1 Replies
View Related
Mar 29, 2013
I am trying to have the exact same type of text (font, color, boldness, italicizing, underlining, etc) in my target as I have in my source on a character by character basis. The procedure below works for color only. Is there a way I can modify this procedure to include all cell attributes for each character in my target? I looked at the Font properties and couldn't find what I needed. Maybe I need to do it in a totally different way?
For Each cell In source
With cell
target.Characters(i, Len(.Value2)).Font.Color = .Font.Color
i = i + Len(.Value2) + Len(delim)
End With
View 9 Replies
View Related
Jun 6, 2013
I have a spreadsheet in which I have several sheets, each of which has its own table populated by an SQL query that displays the data per sheet by customer name and then sorts by a status column that is either "open" or "closed" (Open in Descending order) and then sorts by created time (also in descending order). This table is 17 columns wide. Right next to this table, I have another 2 column table that is to be populated by hand. The problem is that the 2 tables don't talk to each other. For example:
If row 3 of table 1 contains an open action, then row 3 of table 2 will contain data pertaining to that action. If the action is closed via the database refresh, then it may move the action to row 10 now (as open is always shown at top) - however the data that was entered by hand in table 2 is still stuck in row 3.
find a way to make the 2 tables communicate and work together?
I cannot make it only 1 table as far as I can tell because the database refresh wipes out my additional manual columns every time.
View 1 Replies
View Related
Sep 17, 2013
I current have a Vlookup looking at the source data in another workbook stored in a drive so that only limited people have access. Because this information is linked to a drive I thought that it wouldn't return a value if you didn't have access to the drive but I was wrong. Is there a way to remove the Vlookup information if you don't have access to the drive?
View 4 Replies
View Related
Feb 15, 2008
I have a listbox which brings up my bets for todays horseracing. If say one of my selections is a non-runner, would I be able to add a command button to delete that selection from the source data.
The source range is "AL10:AN24". So all I would want to do is select the selection if it isn't running and click on the command button to delete the selection.
I already have code to sort the source data and would like to add this code to the new code, so once a selection has been deleted the source is also resorted.
Here is that code, in case it is needed:
Private Sub CommandButton1_Click()
Range("SYSTEMS!AL10:AN24").Sort Key1:=Range("SYSTEMS!AL27:AO41"), Order1:=xlAscending
End Sub
View 9 Replies
View Related
Jun 19, 2008
I need to do seems quite simple, I want to grab the source of a webpage into a string (where I'll then to some fiddling about with it to strip it down to the information which I need). Currently I'm trying to do it using the webbrowser object and meddling around with the .document properties, but I can't figure it out.
UserForm1.WebBrowser1.Navigate UserForm1.address.Value
grrr = UserForm1.WebBrowser1.Document.body.innerText
UserForm1.sourceoutput.Value = CStr(grr)
View 9 Replies
View Related
Jul 18, 2008
I used to get data from external excel, access files and today tried to put together query to get data from CSV file. While using same source file, I have creted several queries to get data out based on criteria. For some strange reason, same structure queries that did run with excel or access as data source, does not want to work the same way with CSV files.
Here is example of non working query SQL:
SELECT Vendors.Vendor, Vendors.Name, Vendors.`Name 2`
FROM `Q:FinanceRapporterPSAPRaw`Vendors.csv Vendors
WHERE (Vendors.Name Like '%' & ? & '%')
If I enter "London" as a criteria input, it will not work. However, if I enter "ondon" it will find me all values records whre name contains London... Seems like I need to skip first symbol when entering criteria. This is, of course, not something I would like to do.
View 9 Replies
View Related
Dec 22, 2008
I need to translate my Source Data into a new format as follows: ...
View 9 Replies
View Related
Jan 2, 2009
I have a combobox in which I need data loaded from a column of an excel sheet.
As of now, I am using the below
Last = Sheet9.Cells(Rows.Count, 1).End(xlUp).Row
With ComboBox1
For Row = 2 To Last
.AddItem Sheet9.Cells(Row, 1)
Next Row
End With
Is there any other way to load data?
View 9 Replies
View Related
May 15, 2009
I have tried putting in the Row Source in the Properties of ListBox1, (A10:A13) but the range is in another worksheet called Codes. So when I run the Form the list box shows the range A10:A13 in the current sheet. I have named the data list SP but when I punch that in it will not accept it in the Row Source. How can I lock in the source data in the list box so it only shows the named range SP.
View 9 Replies
View Related
Jun 15, 2009
I want to design a spreadsheet report, but instead of importing the data from an external source, i would like the data to come from another sheet within the same workbook. The goal is that the data sheet will contain only raw data with no formatting, and the report sheet will contain all the formatting.
View 9 Replies
View Related
Nov 3, 2009
Hi, I am using this formula - SUMIF(X!$A$1:$A$107,"*"&A3&"*",X!$B$1:$B$107) in Excel to match cells on the source tab to a range of cells on the target tab X. Both ranges of cells contain place names so for example the cell A3 above on the source tab references a number of cells on the target tab X containing "Glasgow" but I need the formula to exclude any cells that contain "Glasgow Mobile" as at the moment it is adding them together. This needs to be draggable so that it will pick all place names but none containing the word "Mobile"
View 9 Replies
View Related
Jun 23, 2006
I've run across something a little strange. I have a query (in, say, Workbook A) that links to a table in another Excel workbook (call it Workbook B). If somebody happens to have workbook B open (it's on a network) and I try to refresh the query, it actually opens workbook B to refresh the query. If it's not being used, it just refreshes without opening the file.
The issue is that I'm refreshing using macros, and when another workbook pops open, the macros break when they try to use other sheets and ranges and stuff. Obviously, the simple answer is to just use a whole bunch of "ThisWorkbook" statements to make it work. However, I never wanted the workbook to be open in the first place. What's more, if I refresh the macro again, an additional VBA project opens for workbook B (so, now I'd have 1 project for WB A, and 2 projects for WB B). This just seems odd.
Anyway, my question is this:
1) has anybody seen this before, or is it explainable?
2) Is there a way in VBA to determine if a file is in use prior to opening it?
View 3 Replies
View Related
Jul 14, 2006
I have a workbork for employee time keeping. I have designed an Input Box that has 15 text boxes (7 diff hour types, 2 weeks, one total box). I have everything working properly except I want to make the control source relative. When the user clicks on a name of an employee (A column), then clicks the macro button, the Input Box appears. I need the text boxes to be linked to the cells E:S on the same row as the active cell. I've tried typing in ActiveCell.Offset(0,4) and variants of it, but all are rejected. How can I link the text boxes using active cell and offset?
View 8 Replies
View Related
Dec 13, 2006
my problem is:
I have a whole list of data which changes according to the users preferences
It comprises of a NAME, X Value, and Y Value and the addition of X and Y. (these all have auto filters on them)
The user inputs under these fields, as many rows as they wish (which will be around 20ish)
I want it so when i click a button "CREATE GRAPH"
it selects the highest 10 values (if there is 10 values, if not then all the values) from the 4th column (X+Y) and then creates a graph. i want each row to be a new series...
View 9 Replies
View Related