excel-formula

MIN/MAX on text sort order

爱⌒轻易说出口 提交于 2020-01-14 14:37:04
问题 In SQL Server, MIN and MAX can act on text that doesn't evaluate to numbers, returning the text item with the lowest or highest text sort order, or as it's known in SQL Server-speak, "collation order". Is it possible to do that in Excel without going to a UDF that actually sorts? For example, for MIN("bb","aa","cc") to return "aa", and MAX("bb","cc","aa") to return "cc". Excel's MIN/MAX ignore text, and although MINA/MAXA can work on text, they break on text that doesn't resolve to a number.

compare time in excel

送分小仙女□ 提交于 2020-01-14 10:22:44
问题 Excel experts, need your help to compute the check column, details below. Column A | Column B | Column C | Column D | Check 12/07/2012 23:59:06 | 2012/07/12 | Thursday | 23:59:06 | ? - | =TEXT(A2, "yyyy/mm/dd") | =TEXT(A3,"dddd")|=TEXT(A3,"HH:mm:ss")| As you can see, I am extracting the date in column B, I am extracting the day in Column C, I have the time being extracted in Column D. Column Check should be true if the below condition is met and false otherwise: If day is Saturday or Sunday

Excel: Cell counts based conditions

佐手、 提交于 2020-01-14 03:47:08
问题 I am again trapped in a situation where I can't figure how to do it. Basically, here is replica of the table I need to work on. A B C D E F G 1 Months MON TUE WED THU FRI SAT 2 Jan Yes No N/A Yes Yes MayBe 3 Feb No No MayBe Yes N/A No 4 Jan No Yes MayBe MayBe Yes No 5 Apr No No MayBe Yes N/A No 6 May No Yes MayBe MayBe Yes No 7 Jan Yes No N/A Yes Yes MayBe 8 Feb Yes Yes N/A N/A No MayBe 9 Apr No Yes MayBe MayBe Yes No 10 Yes Yes No N/A MayBe MayBe Now, on another tab I want to calculate all

Combine multiple sheets to 1 sheet

喜你入骨 提交于 2020-01-13 20:21:14
问题 Is there any way to combine 2 or more sheets to 1 sheet without using VBA? I was thinking of having a unique value in the first column, then VLOOKUP for the rest. but i'm having a hard time figuring out how to return to the first cell in the 2nd sheet. 回答1: Using your sample data image (it's important that numbers remain numbers in column A), these two standard formulas are destined for Sheet3!A2:B2. =IFERROR(INDEX(Sheet1!A$2:INDEX(Sheet1!A:A, MATCH(1E+99, Sheet1!A:A)), ROW(1:1)), IFERROR

Combine multiple sheets to 1 sheet

一曲冷凌霜 提交于 2020-01-13 20:21:08
问题 Is there any way to combine 2 or more sheets to 1 sheet without using VBA? I was thinking of having a unique value in the first column, then VLOOKUP for the rest. but i'm having a hard time figuring out how to return to the first cell in the 2nd sheet. 回答1: Using your sample data image (it's important that numbers remain numbers in column A), these two standard formulas are destined for Sheet3!A2:B2. =IFERROR(INDEX(Sheet1!A$2:INDEX(Sheet1!A:A, MATCH(1E+99, Sheet1!A:A)), ROW(1:1)), IFERROR

How to refresh calculation instantaneously in excel

喜夏-厌秋 提交于 2020-01-13 06:36:29
问题 I have a problem in refreshing the cell's calculation. In other words, I have many columns where i have a formula or macro in each one of them. But the problem is that i should absolutely activate the option " automatic calculation" in the excel options or i should save then the new results appear. Now, I would insert something in the macro that can refresh me the results instantaneously. Thanks 回答1: You could simply press : F9 to calculate the whole active workbook Shift + F9 to calculate

Differences between string representations of date/times

谁说我不能喝 提交于 2020-01-11 14:37:10
问题 In Excel 2007, I want the differences for the following string date/times: A B C 1 Date1 Date2 Difference of A and B 2 2009.11.28 01:25:46:0287 2009.11.28 01:25:46:0287 ? 3 2009.11.28 01:25:46:0443 2009.11.28 01:25:46:0443 ? I want the differences by converting strings to date/time and then the results as differences of two converted date/times. 回答1: A rather long-winded way to calculate zero (for the examples): =SUBSTITUTE(LEFT(A2,10),".","/")+MID(A2,12,8)+RIGHT(A2,4)/86400000-(SUBSTITUTE

Sum column if cells are outside range (range = leftmost value in row + next 11 columns) R or Excel?

时光怂恿深爱的人放手 提交于 2020-01-11 13:06:10
问题 Please see the picture. In the matrix pictured, an entry is considered "New Business" from the leftmost value + the next 11 columns (so 12 months total). I've highlighted this "window" in yellow. Anything to the right of that window is "Return Business". For each column/month, I need to calculate both the New & Return Business. I need a formula or some method to derive these two sums from one column. I only need to be able to get one of these, because then I could just subtract it from the

Sum column if cells are outside range (range = leftmost value in row + next 11 columns) R or Excel?

橙三吉。 提交于 2020-01-11 13:04:11
问题 Please see the picture. In the matrix pictured, an entry is considered "New Business" from the leftmost value + the next 11 columns (so 12 months total). I've highlighted this "window" in yellow. Anything to the right of that window is "Return Business". For each column/month, I need to calculate both the New & Return Business. I need a formula or some method to derive these two sums from one column. I only need to be able to get one of these, because then I could just subtract it from the

How to delete these specified columns?

若如初见. 提交于 2020-01-11 12:24:27
问题 I want to delete specific columns to all sheets in a workbook. When I run my codes, it will only remove the columns specified in the first line. The rest are not included. How do I do it with many columns to specify? How do I go about this? Sub Dosomething() Dim xSh As Worksheet Application.ScreenUpdating = False For Each xSh In Worksheets xSh.Select Call DeleteColumns Next Application.ScreenUpdating = True End Sub Sub DeleteColumns() Dim ColumnsToDelete As String, V As Variant