excel-formula

Sum() Across Dynamic Number of Sheets

最后都变了- 提交于 2020-01-01 16:54:06
问题 Hello all and thanks for your help ahead of time, I have an excel sheet that is solely to take the summation of multiple sheets. Best and most simply put, the formula is something like =sum(Sheet1!A1,Sheet2!A1,Sheet3!A1,Sheet4!A1) . There are a few issues that complicate matters though. First off all, I do not know the number or order of the sheets to sum, nor do I know their name. This formula will be copied into ~150 other cells, so I need the summation to be dynamic instead of physically

Multiple conditional formatting rules across multiple ranges?

末鹿安然 提交于 2020-01-01 09:18:43
问题 I need to do the following. Highlight a row if cell E contains a number greater than 30 AND cell L contains a number greater than 100. This rule needs to be applied to all rows. Can you help please? 回答1: You should use CONDITIONAL FORMATTING: 1) Select all cells in the sheet (by pressing on the top left corner): 2) With selected range go to "Conditional Formatting -> New Rule.." 3) Select "Use formula..." rule type, enter formula =AND($E1>30,$L1>100) . Choose desired format and press "OK"

How to get unique values in a column using excel formula

蓝咒 提交于 2020-01-01 04:03:08
问题 I have Excel Data like below JID Val 1001 22 1030 6 1031 14 1041 8 1001 3 2344 8 1030 8 2344 6 1041 8 How do i get the unique JID values like below using formula? UJID 1001 1030 1031 1041 2344 回答1: You can use the remove duplicate function Select the column range Go to Data Tab then click on Remove Duplicates 回答2: Here is a solution to get a list of unique items from your tables There is two parts to this solution. Part 1) Unique Count {=SUM(IF(FREQUENCY(IF($A$2:$A$10<>"",MATCH($A$2:$A$10,$A

Active cell as input to formula

佐手、 提交于 2020-01-01 03:24:32
问题 I was wondering if I can use the active cell, by that I mean the cell that is "highlighted" at a given time with the square border after there was a mouse click there, as an argument in a function. For example, I have created a table with weighted averages with 3 weights: w1 is given in the column headers (kindly see the file below), w2 in the row headers, and w3 which complements w1 and w2 to 1. What I'd like to do is have cells outside the table show the weights the average got when a cell

How can I sort one set of data to match another set of data in Excel?

大憨熊 提交于 2020-01-01 03:12:39
问题 I have a list of data that is not in alphabetical or numerical order. I want to sort a second list of the same date to match the first list. I cannot change the order of the data. My goal is to paste additional data from the second set back into the first data set. **DATA SET A** **DATA SET B** 22350 ____ BH160 100 22355 ____ 22350 125 BH160 ____ BH190 200 BH190 ____ 22355 150 I would like to get the numerical value from column 2 of DATA SET B to show up in a new column of DATA SET A. For

Comparing computed dates with entered dates

两盒软妹~` 提交于 2019-12-31 06:22:33
问题 I have in cell p4 the date: 2014-01-01 (obtained via formula ( =(((O5/1000/60)/60)/24)+DATE(1970,1,1)) ) I have in cell b5 the date: 2014-01-01 (typed in) =(p4=b5) gives false =(p4>=b5) gives false How do I compare dates correctly in Excel? 回答1: You should be safe with chopping the parts up and reassembling them: =DATE(YEAR(P4),MONTH(P4),DAY(P4))=DATE(YEAR(B5),MONTH(B5),DAY(B5)) 回答2: Select the two date cells. Press CTRL+1 to show the format tab On the Number tab, in the Format list, click

Replace INDIRECT with INDEX to iterate closed workbooks

我的未来我决定 提交于 2019-12-31 06:20:51
问题 Yesterday I started a topic in regards of iterating cells from some workbooks into a new, summary workbook. For this I used INDIRECT function: Iterate between workbooks using INDIRECT However, realizing the backdrafts of INDIRECT I want to achieve the same thing, but by using INDEX, as I've read from forums that INDEX works even when the referenced workbook is closed, wheras INDIRECT does not. Then, using =INDEX(CONCATENATE("'C:\Pathtofile\[";O282;"]";$O$283;"'!";ADDRESS(11;KOLUMN()-23));1)

converting dates to correct format

假装没事ソ 提交于 2019-12-31 05:33:08
问题 I have a data set were some of the dates in UK format and others are in US Format 6/28/2019 07/01/2019 6/28/2019 07/01/2019 6/28/2019 07/01/2019 6/28/2019 07/01/2019 6/28/2019 07/01/2019 what would be the best way to convert them all into the standard UK format 回答1: Without seeing your data, I do believe all your dates are in the same format actually, mm/dd/yyyy . I have not seen any dataset that deliberately would mix two formats together. Some of the dates just happen to be legal dates in

Efficiently replace 0 with NA

让人想犯罪 __ 提交于 2019-12-31 05:25:06
问题 I am trying to find a way to efficiently replace zero with NA() in an Excel formula. I know the following works: =IF(FORMULA = 0, NA(), FORMULA) But my problem is that this will cause FORMULA to execute twice. I have cases where this may be a longer =SUMIFS() in a giant table. So I would like for: No VBA Only have the base FORMULA calculate once I thought at first to try to use SUBSTITUTE() to replace "0" with something that would trigger a value error, and then just wrap all of that within

Parsing non-standard date format in Excel cell

送分小仙女□ 提交于 2019-12-31 05:18:12
问题 I want to convert dates formatted like "March 30th 2017, 05:00:00.000" to an excel date value? What's the most elegant solution I can do this with using a cell-formula and not VBA? 回答1: This will do the standard "rd","th","st","nd" =--(LEFT(A1,MIN(FIND({"rd","th","st","nd"},A1 & "thrdstnd"))-1)& ", " & SUBSTITUTE(MID(A1, MIN(FIND({"rd","th","st","nd"},A1 & "thrdstnd"))+2,LEN(A1)),",","")) You can add other suffixes as you need to the formula Then you can format it as you like. 回答2: Nested