excel-2010

How to divide long rows into multiple smaller rows for an entire (very large) data spreadsheet

陌路散爱 提交于 2019-12-11 09:56:22
问题 Google Doc with data in its current format followed by desired format: https://docs.google.com/spreadsheets/d/1XlxEVcP6QpWYyOeflLmp_mKflCBclim_UQSeMkHByh8/edit?usp=sharing I am trying to create a template to rearrange a data set that is exported in a horrible format. I have posted a link to a Google Doc that has an example of the data in its current format followed by how I need it to be formatted. Currently, all data for a given person is in a single row, and the ID # is repeated before each

Finding last column and then finding the last row in that column

人盡茶涼 提交于 2019-12-11 09:53:27
问题 I need to find the last column in a worksheet and then find the last row in that particular column. For last column I am using this: lastcol = .Cells(1, .Columns.count).End(xlToLeft).Column last_row = Range((Cells(Rows.count), lastcol).Find("*", after:=r, LookIn:=x1values, lookat:=x1part, SearchOrder:=xlByColumns, SearchDirection:=xlPrevious, MatchCase:=False) Here is snapshot of the worksheet: Can some also help me with putting all the data I want to save in an array 2 dimensional and then

VB.net Office Solution - Accessing value in named Range in a Worksheet

江枫思渺然 提交于 2019-12-11 09:53:25
问题 I'm working on converting an Excel VBA project to a VB.net Office Solution. In VBA accessing a named range within a sheet was pretty easy. Sheet1.Range("NamedRange") would give you the value in that cell. In VB.net I've tried several different things, all ending in failure. I started here. http://msdn.microsoft.com/en-us/library/aa168292(v=office.11).aspx#excelobj_link9 I'm using one of the Visual Studio Excel 2010 Document template, and I managed to set a value in a named range on a sheet.

Comparing two columns in excel sheet and if match writing adjucent cell value in new cell

纵饮孤独 提交于 2019-12-11 08:20:37
问题 i have 3 columns A B C D 11H 3HI xyz 2AB 2CD dfd 3HI 11H 123 I am struggling for the formula through which i can compare column A & B and if matched the adjucent cell value should be written in column D. For example A B C D 11H 3HI xyz 123 2AB 2CD dfd --- 3HI 11H 123 xyz. my column consisting of 43000 cells vertically. i have to compare all these values and write the results using excel. Please help me with this. Thanks in advance. 回答1: The formula you're after is: =VLOOKUP(A1,$B$1:$C$3,2

excel dim cell text value as controls

泄露秘密 提交于 2019-12-11 08:16:39
问题 I am having trouble with my macro. I have a button and a few check boxes on a form, i am trying to write a code that when i click the button it will check the range("A1").text, after take that text (which in this case is "checkbox1") and i want to say something like this: questionnaire = Range("A1").Text questionnaire.Value = Range("A2").Value since i have many checkboxes as mentioned earlier, i want that when i write a certain controls name in "A1", when i click the button, that control will

Need to change colors on the Pivot Chart using VBA

隐身守侯 提交于 2019-12-11 08:13:09
问题 Problem: I am generating reports using Excel 2010, and multiple pivot charts. When I generate reports I can not set the colors of the pivot chart series to a static value. Some times "Pass" series displayed as "RED" and this creates confusion. I try to use the code below to force to change the colors on the series: Sheets("PSD").Select ActiveSheet.ChartObjects("Chart 5").Activate ActiveChart.SeriesCollection(1).Select With Selection.Format.Fill .Visible = msoTrue .ForeColor.RGB = RGB(0, 176,

excel and sql queries through different subs or functions

和自甴很熟 提交于 2019-12-11 08:11:28
问题 I have an excel sheet which i use with an access database. I want to open the database and use different sub routines with different queries. However i don't know hot to publically assign an variable to use the database so i have to create the connection within each subroutine and open and close this. I have a fealing that this must be able to do smarter so i don't have the same code written all over it. I open the database with the following code and have to do this over and over for every

Excel help on combination of Index - match and sumifs?

房东的猫 提交于 2019-12-11 07:57:43
问题 I have these three tables as shown in this image below: SalesOrderTable, OrderAdjustmentTable, and TotalSalesTable. SalesOrderTable Each order number in the SalesOrderTable represent an order number for a product from the same invoice. It has A,B, or C if an invoice is made for more than one product, but not if it is only made for one product. E.g.: Order 1703 has two products, so it has A and B at the end of each order number. Order 1704 has an order for Apple only, so it doesn’t have any

Scan multiple barcodes into a single Excel cell, each on a separate line

被刻印的时光 ゝ 提交于 2019-12-11 07:43:13
问题 A library has an Excel sheet that's used as a packing list for books to be loaned to other libraries. Each row represents a single box being packed. The cells of that row have info such as Recipient, Shipment number, Box number, etc. In one of the columns they'd like to scan the barcoded "Acquisition Number" of each of the several books that will go in that box, such that each scanned number will appear on a new line in that cell. But when they scan a barcode, Excel moves to the next row,

Excel function to Auto-Populate value in Column C based on the combination of values in column A and Column B

﹥>﹥吖頭↗ 提交于 2019-12-11 07:27:35
问题 I have 3 columns with values filled in already in my metasheet. A combination of values in column A and column B makes the selection unique. I need to pull/return the value in column C for the values selected in columns A & B. for example: In sheet 1, I have the following data: country Month weather 1 USA Jan winter 2 USA Feb fall 3 USA May summer 4 China Jan summer 5 China Feb spring 6 China May fall 7 India Jan fall 8 India Feb summer 9 India May Rain Now, say for a random row 25, I have