worksheet-function

Separating data and placing in individual worksheets Excel VBA [closed]

心不动则不痛 提交于 2019-12-18 13:38:48
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I have a large data set with over 80K entries of the following form: Name Date Value 1T17_4H19_3T19_3T21_2_a_2 09-Aug-11 -9.3159 1T17_4H19_3T19_3T21_2_a_2 10-Aug-11 -6.9662 1T17_4H19_3T19_3T21_2_a_2 11-Aug-11 -3

Case Function Equivalent in Excel

这一生的挚爱 提交于 2019-12-18 12:43:37
问题 I have an interesting challenge - I need to run a check on the following data in Excel: | A - B - C - D | |------|------|------|------| | 36 | 0 | 0 | x | | 0 | 600 | 700 | x | |___________________________| You'll have to excuse my wonderfully bad ASCII art. So I need the D column (x) to run a check against the adjacent cells, then convert the values if necessary. Here's the criteria: If column B is greater than 0, everything works great and I can get coffee. If it doesn't meet that

Filter an array using a formula (without VBA)

邮差的信 提交于 2019-12-18 03:52:50
问题 Is it possible to filter an array using a single formula (without autofilter, VBA, or additional columns)? For example, I have the following spreadsheet: A | B | C -------------------- 1| ID | Class | Value 2| 1 | A | V1 3| 1 | B | V2 4| 2 | A | V3 5| 3 | B | V4 6| 3 | B | V5 I want to use a subset of this array in VLOOKUP. Namely, I only want to match against those rows where class is "B". So I was hoping I could use something like the following =VLOOKUP(A3, FILTER_FUNC(A:C, B="B"), 3, false

How to make a reference to a cell of another sheet, when the sheet name is the value of a cell?

末鹿安然 提交于 2019-12-17 19:09:18
问题 In excel 2007, I have a formula in a cell like the following: =COUNTIFS('2008-10-31'!$C:$C;">="&'$A7) Now I want to make the name of the sheet ('2008-10-31') be dependent on the value of some cell (say A1). Something like: =COUNTIFS(A1!$C:$C;">="&'$A7) // error Is there is way to do this? Or do I have to write a VBA-Macro for it? 回答1: INDIRECT does what you want. Note that if the sheet name has any spaces, you need to put single quotes round it, ie =COUNTIFS(INDIRECT("'" & A1 & "'!$C:$C"); ">

Convert date field into text in Excel [duplicate]

[亡魂溺海] 提交于 2019-12-17 17:55:10
问题 This question already has answers here : Excel Date to String conversion (9 answers) Closed 4 years ago . I have an Excel file which has a column formatted as date in the format dd-mm-YYYY . I need to convert that field to text. If I change the field type excel converts it to a strange value (like 40603 ). I tried the text function but it gives me Error 508. Any help? 回答1: You don't need to convert the original entry - you can use TEXT function in the concatenation formula, e.g. with date in

Use string value from a cell to access worksheet of same name

会有一股神秘感。 提交于 2019-12-17 15:29:26
问题 I have 2 worksheets: Summary and SERVER-ONE . In cell A5 on the Summary worksheet, I have added the value SERVER-ONE . Next to it, in cell B5 , I would like a formula that uses the value in A5 to display the value of G7 in the worksheet of the same name ( SERVER-ONE ). I could manually use: ='SERVER-ONE'!G7 However I would like this to be dynamic, so I can easily add more worksheets. I tried the obvious with no joy: ='A5'!G7 Any suggestions? 回答1: You can use the formula INDIRECT() . This

How do I slice an array in Excel VBA?

自闭症网瘾萝莉.ら 提交于 2019-12-17 02:22:13
问题 What function can I use in Excel VBA to slice an array? 回答1: Application.WorksheetFunction.Index(array, row, column) If you specify a zero value for row or column, then you'll get the entire column or row that is specified. Example: Application.WorksheetFunction.Index(array, 0, 3) This will give you the entire 3rd column. If you specify both row and column as non-zero, then you'll get only the specific element. There is no easy way to get a smaller slice than a complete row or column.

Copying Dynamic Cells/Rows Into New Sheet or Workbook

点点圈 提交于 2019-12-13 20:53:16
问题 I tried searching on the site for a solution to this but I was unable to find an exact match. I'm trying to figure out a VBA code that will do the following: Search through a specified column Locate all matching values (non-specified) Copy the rows of said matching values Place them into a new worksheet or workbook (preferrably workbook) Here is my problem. The value in the specified row can be 1 of over 300 unique values, so specifying each one in the VBA code would be a nightmare. I

How to get the newest value from a column with conditions

谁都会走 提交于 2019-12-13 14:43:31
问题 I have a table in Excel which has the columns: Date Person Name Amount (£) The table is used to record when people pay me money. Typically, I can get more than one person paying me on the same day. Also, the same person will pay me on many days over the course of time. Records are added to the bottom of the table so the ordering will be on date but no further ordering on name or amount. Using formulas, is there a way I can retrieve the most recent amount for a specific person? If this is too

Converting a string to a date in a cell

左心房为你撑大大i 提交于 2019-12-13 11:52:17
问题 I have 100.000 rows of data in Excel. Some of the fields are dates, but the fields in Excel are as text. I need these fields in number format including both dates AND time (e.g. 21.10.2011 13:10:50). Formatting the cells doesn't work because that doesn't change the datatype. I can pick out the date and time with formulas but not get them in the same cell. So what I am looking for is the formula to calculate the number representation of a date (the one you see if you format a date as a number)