excel-formula

IFERROR in Excel 2003

三世轮回 提交于 2021-02-16 15:26:29
问题 I understand from reading a couple of threads that IFERROR in Excel 2003 is preformed by an IF(ISERROR) . The code I am trying to replicate from Excel 2007+ is: =IFERROR(A1, "") I know there must be a simple solution to translating this to IF(ISERROR) , but I have had no avail. Advice would be greatly received. 回答1: The Excel 2003 equivalent of =IFERROR(A1,"") is =IF(ISERROR(A1),"") . See =IS. But neither version of that formula is very useful. A little more useful would be something like =IF

Convert from US to UK format

£可爱£侵袭症+ 提交于 2021-02-15 05:33:53
问题 How do I modify the following to be D/M/YYYY? 8/7/20 6:20 PM 8/17/20 4:24 PM Currently it is M/D/YY Here is what I have done to no avail: =VALUE(LEFT(A2,FIND(" ",A2,1)-1)) - This is to extract the date portion (because excel sees it as text) Tried to convert the date to a D/M/Y using 'text to columns' but that does not work. Excel sees the middle number as the date so anything over 12 and it throws an error. Thank for any help on this. It's breaking me. 回答1: use: =TEXTJOIN("/",,FILTERXML("<a>

Optimizing the VBA Code and improve the performance

不问归期 提交于 2021-02-13 11:24:25
问题 I have developed a VBA macro which is used to refresh the 5 SAP AAO Queries and then copy those queries data into tables saperately by removing duplicates and then loaded into the power query. There i add some calculated columns and then load that data into the power pivots. I have also used the VBA code mentioned below to perform some actions in each of the sheets, however it is currently taking more than 4 minutes to run the code. In that 4 minutes at least 45 seconds are going for

Nested IF and ISBLANK formula

喜你入骨 提交于 2021-02-11 17:48:23
问题 I need help with a nested IF and ISBLANK formula. Here is the scenario: There are three columns: A, B and C. All three are dates. I want to retrieve the value of column A in column D (direct value). if Column A is blank, retrieve Column B value, if Column B is also blank retrieve Column C value. Addition to this if column A has year 2015/2016 consider that cell as Blank and retrieve Column B/C. How do I tackle this scenario? 回答1: For your first bit: =IF(ISBLANK(A1),IF(ISBLANK(B1),C1,B1),A1)

Unique range in Excel doesn't return the unique record but all other records

牧云@^-^@ 提交于 2021-02-11 15:42:12
问题 I have got a problem with the unique value in Excel. I used the advice from this query: Extract unique value from the range in Excel used the following module: Public Function unikue(rng As Range) Dim arr, c As Collection, r As Range Dim nCall As Long, nColl As Long Dim i As Long Set c = New Collection nCall = Application.Caller.Count On Error Resume Next For Each r In rng c.Add r.Text, CStr(r.Text) Next r On Error GoTo 0 nColl = c.Count If nCall > nColl Then ReDim arr(1 To nCall, 1 To 1) For

Rank & Rank.EQ function - Array reference error

丶灬走出姿态 提交于 2021-02-11 13:58:31
问题 Background: Short question on the use of array references within RANK or RANK.EQ function. Both function got the following parameters: ....(number,ref,[order]) Ms.Documentation about the Ref parameter within RANK and RANK.EQ : " Ref Required. An array of, or a reference to, a list of numbers. Nonnumeric values in ref are ignored." Also, other websites I would normally highly recommend, would state that the use of an array or list is possible within the Ref parameter. Sample data: | Rank1 |

Rank & Rank.EQ function - Array reference error

混江龙づ霸主 提交于 2021-02-11 13:57:30
问题 Background: Short question on the use of array references within RANK or RANK.EQ function. Both function got the following parameters: ....(number,ref,[order]) Ms.Documentation about the Ref parameter within RANK and RANK.EQ : " Ref Required. An array of, or a reference to, a list of numbers. Nonnumeric values in ref are ignored." Also, other websites I would normally highly recommend, would state that the use of an array or list is possible within the Ref parameter. Sample data: | Rank1 |

Appending separators in the formula

≡放荡痞女 提交于 2021-02-11 13:35:44
问题 Can someone help on this? I have column A with telephone number and Column B with country code. I want to remove the country code in column A if it is there to avoid duplication. Can someone help me? Column A 1234567 Column B 1 Column C 1234567 Column C should have the formula to check if 1 is already in the beginning of the cell value A, if yes, it'll remove it, but if not, column B value will be added to it. Another scenario is below: Column A 234567 Column B 1 Column C 1234567 Also, I

Appending separators in the formula

删除回忆录丶 提交于 2021-02-11 13:30:19
问题 Can someone help on this? I have column A with telephone number and Column B with country code. I want to remove the country code in column A if it is there to avoid duplication. Can someone help me? Column A 1234567 Column B 1 Column C 1234567 Column C should have the formula to check if 1 is already in the beginning of the cell value A, if yes, it'll remove it, but if not, column B value will be added to it. Another scenario is below: Column A 234567 Column B 1 Column C 1234567 Also, I

Formatting numbers with prohibited characters

一曲冷凌霜 提交于 2021-02-11 13:27:34
问题 Formatting a value to display units adds clarity while retaining the numerical value in the cell. This can be done using: =TEXT(1000,"#,### kW") or via the formatting dialog: Format Cells > Number > Category Custom But some characters are not allowed by either method. How can this be done for units like "kWh" or "kWh/yr" without converting the value to a text type and thereby preventing the value from being used in a calculation? 回答1: Either enclose your string within quotes, or "escape" each