excel-formula

Calculate last quater from today (given Fiscal Year end)

时光怂恿深爱的人放手 提交于 2020-01-07 05:06:50
问题 I have as input a "Fiscal Year end", which determines the quarter ends of a company. Say: today() is 3-April-2015 Company fiscal year ends: Oct-14 then I should get the latest quarter end : Jan-15 i.e the latest quarter end from the company fiscal year end till today's date. With: FiscalEnd=12/02/2014 Today() (a3) =04/03/2015 I have tried: =TEXT(EOMONTH(Fiscal_Year_EndQ,MOD(-MONTH(A3),3)-3),"mmm-yy") and am getting Nov-14 . Example: Fiscal Year ends at: 31-Oct-2014 Today's date: 4 April 2015

VBA UDF to split string array

删除回忆录丶 提交于 2020-01-07 04:18:40
问题 I've written this function which works, now I want to be able to call it as a worksheet function as in the pics, any guidance would be welcome: There are two parts to the array separated by a semi-colon. Function CellToRange(strDelimiter As String, Optional strColDelimiter As String) As String On Error GoTo CellToRange_Error Dim rnSource, rnDest As Range Dim i As Integer Dim Orig As Variant Dim txt As String Dim intPos As Integer Set rnSource = Range("F16") Set rnDest = Range("D21") txt =

Excel: find matrix cell that contains in a string and return same row but different column

时光毁灭记忆、已成空白 提交于 2020-01-07 03:08:29
问题 I want to check which cell value of matrix contains in "Product name" and return a value in the same row, but different column (column A). I using this function, but it's checks only one column and not a matrix: =INDEX(A$11:A$13, AGGREGATE(15, 6, ROW($1:$3)*SIGN(MATCH("*"&A$11:A$13&"*", B2, 0)), 1)) In simple words, I want to compute car manufacturer by product name. 回答1: This formula will work, but it is quite long and making adding to the matrix Will only add to the length: =INDEX($A$11:$A

Find first non-blank cell for each column from rows that match lookup to merge duplicate matches

橙三吉。 提交于 2020-01-07 03:03:47
问题 I have a spreadsheet that is combined contact lists from a number of sources, with varying degrees of completeness. Some contacts have provided their information multiple times, but left different fields blank each time. I'm looking to remove at least some of the duplicates by combining rows to fill in the blank values. Here's a simplified example of what my data looks like id email phone company job title 01 johnsmith@example.com 5550123 acme inc 01 johnsmith@example.com acme inc CEO 02

Lookup multiple values in a single cell (separated by commas) and then return the values to a single cell (also comma separated)

给你一囗甜甜゛ 提交于 2020-01-07 02:57:05
问题 I need to Vlookup on column A of sheet1 with cell A1, A2 values SD-121, SD-232, SD-23 SD-323,SD-333 and so on.. vLookup table in a different sheet with column A, B, C, D. Column A having A B SD-232 US SD-23 UK SD-323 IN SD-333 SG SD-121 CN The lookup result is to be displayed in Column B of sheet1 result cell B1 and B2 B CN, US, UK IN, SG 回答1: You can create a user function to loop the values through the VLOOKUP function: Function VLOOKUPARRAY(ByVal lookup_val As Range, ByVal table_array As

How to find total number of values in a number range in a particular cell?

有些话、适合烂在心里 提交于 2020-01-07 02:16:27
问题 For example: DATA COLUMN: 23 TO 26, 40, 22, 7, 27 TO 28, 49, 50 TO 51, 48, 136, 169, 190 TO 192, 17 TO 22 AND NIL *includes individual numbers, number range and word. I have these datas as shown above in each individual cell, how do I come up with a formula that sums up all the total number of values? I need to do some updating of datas. I am currently using a formula provided by Jerry Beaucaire : =ROWS(INDIRECT(SUBSTITUTE(SUBSTITUTE(A1," - ",":")," TO ", ":"))) Thanks! 回答1: Try this formula

find the same words into different cells

这一生的挚爱 提交于 2020-01-07 01:49:12
问题 find the common words in title of the books in Excel, the output like this : 'book common user_id physics physics 1 Principles of plasma physics physics,plasma 2 Fundamentals of plasma physics fundamentals,plasma,physics 3 Fundamentals of thermodynamics fundamentals 4 ' 回答1: So here's my shot at this problem. I am aware that the code is rather messy: I've been very sloppy with variable names, error handling and so on, but it gives you an idea of how it can be done. I've created a UDF Common()

find the same words into different cells

拟墨画扇 提交于 2020-01-07 01:49:09
问题 find the common words in title of the books in Excel, the output like this : 'book common user_id physics physics 1 Principles of plasma physics physics,plasma 2 Fundamentals of plasma physics fundamentals,plasma,physics 3 Fundamentals of thermodynamics fundamentals 4 ' 回答1: So here's my shot at this problem. I am aware that the code is rather messy: I've been very sloppy with variable names, error handling and so on, but it gives you an idea of how it can be done. I've created a UDF Common()

Excel: track number of employees at a given moment

╄→гoц情女王★ 提交于 2020-01-07 00:47:50
问题 I am trying to come up with an Excel sheet where I have a set of 30-minute intervals throughout the day (starting at 10:00 and ending at 20:00) and I would like to calculate how many employees are available during each of them. The data I have is their shift start/end and the start-end times of their lunch breaks (normally 1 hour, but for part-timers these last 30 minutes). Here's a sample file: http://www.mediafire.com/download/op3rarsiqj1sm77/time-tracker.xlsx Do you have any suggestions?

Extracting Data (ignore duplicates & compile information)

给你一囗甜甜゛ 提交于 2020-01-06 18:31:12
问题 I have a lot of data that I am trying to summarize into a new sheet and the solution is evading me. I have a data set that looks similar (although larger and more complex) to the attached image. I have figured out how to make the first list to remove duplicates, as my problem started out similar to the problem here. (i.e. using the =INDEX($A$2:$A$13, MATCH(0, COUNTIF($F$2:F2, $A$2:$A$13&""), 0) formula). What I cant figure out how to do now though is bring in the respective data for each mini