excel-formula

Get cell value but skip row if wrong

北城余情 提交于 2021-01-25 07:57:20
问题 I have two tables: I want to get all names from Table 1 that have status "Denied". I tried using IF formula but it returns blank/other false value. Expected result is Table 3. Is there any other formula that can solve this? 回答1: Use this formula in Table 3 Column 1 =IFERROR(SMALL(IF(($B$2:$B$15="Denied"),$A$2:$A$15,""),ROW()-2),"") Note: Press CTRL+SHIFT+ENTER after putting in the formula (As it is an array formula) No need for a second table Use this formula in Table 3 Column 2 =IFERROR

Get cell value but skip row if wrong

拈花ヽ惹草 提交于 2021-01-25 07:57:16
问题 I have two tables: I want to get all names from Table 1 that have status "Denied". I tried using IF formula but it returns blank/other false value. Expected result is Table 3. Is there any other formula that can solve this? 回答1: Use this formula in Table 3 Column 1 =IFERROR(SMALL(IF(($B$2:$B$15="Denied"),$A$2:$A$15,""),ROW()-2),"") Note: Press CTRL+SHIFT+ENTER after putting in the formula (As it is an array formula) No need for a second table Use this formula in Table 3 Column 2 =IFERROR

Excel - How can we replace multiple characters or whole words in a cell using LAMBDA()

北慕城南 提交于 2021-01-23 11:08:46
问题 At risk of being off-topic I decided to do a little Q&A as I'm pretty excited about a new function MS is introducing to Excel365; the LAMBDA() function. If the general opinion is such that this is off-topic, please let me know and I can take down the Q&A. The LAMBDA() function is basically your way in Excel itself to create your own function. You then can go ahead and call this function throughout your entire workbook. But the absolute great thing (IMHO) about it is that it is able to call

Padding a word with spaces to fill a cell

点点圈 提交于 2021-01-21 12:12:47
问题 Is it possible to pad a cell with spaces to ensure that it is the correct length? Here's an example with * representing spaces. Input Output ----- ------ red red** blue blue* The words are padded with spaces to ensure the cell content is 5 characters long. 回答1: Try this: =LEFT(A1&"*****",5) We are adding lots of stars(*) then just cutting from left 5 characters. 回答2: As per suggested comment: =LEFT(A1 & REPT("*",5),5) original: =A1 & REPT("*",5-len(A1)) main advantage being that you can pass

Padding a word with spaces to fill a cell

夙愿已清 提交于 2021-01-21 12:10:48
问题 Is it possible to pad a cell with spaces to ensure that it is the correct length? Here's an example with * representing spaces. Input Output ----- ------ red red** blue blue* The words are padded with spaces to ensure the cell content is 5 characters long. 回答1: Try this: =LEFT(A1&"*****",5) We are adding lots of stars(*) then just cutting from left 5 characters. 回答2: As per suggested comment: =LEFT(A1 & REPT("*",5),5) original: =A1 & REPT("*",5-len(A1)) main advantage being that you can pass

Changing decimal separator with formula

巧了我就是萌 提交于 2021-01-21 09:50:48
问题 I work with teams from multiple countries and sometimes I receive excel files that have another decimal separator than the one I use. Is there any formula to do that? I certainly could use a macro, but a formula would be much easier because I am not the only person in my company in need of this and a macro would be too complicated for the general Joe Public. Please keep in mind that I may have multiple separators in the same number, for example, 3.000.000,00 has 2 points for the thousands and

How to fix date filter VBA as it is not picking up all dates that fall within my range

最后都变了- 提交于 2021-01-20 12:08:10
问题 I'm trying to create a filter that will filter out all dates that fall within the dates I choose. The dates I choose will always reflect a whole month. For example, if I need data for May 2019, I will input my start date as 01/05/2019 and my end date as 31/05/2019. My data filter will need to pick up all rows that go through my start date. So it should pick up whole calendar years (01/01/2019 - 31/12/2019), quarters (01/04/2019 - 30/06/2019) and any dates that cover the month of May.

How to fix date filter VBA as it is not picking up all dates that fall within my range

﹥>﹥吖頭↗ 提交于 2021-01-20 12:06:47
问题 I'm trying to create a filter that will filter out all dates that fall within the dates I choose. The dates I choose will always reflect a whole month. For example, if I need data for May 2019, I will input my start date as 01/05/2019 and my end date as 31/05/2019. My data filter will need to pick up all rows that go through my start date. So it should pick up whole calendar years (01/01/2019 - 31/12/2019), quarters (01/04/2019 - 30/06/2019) and any dates that cover the month of May.

How to fix date filter VBA as it is not picking up all dates that fall within my range

时光怂恿深爱的人放手 提交于 2021-01-20 12:06:46
问题 I'm trying to create a filter that will filter out all dates that fall within the dates I choose. The dates I choose will always reflect a whole month. For example, if I need data for May 2019, I will input my start date as 01/05/2019 and my end date as 31/05/2019. My data filter will need to pick up all rows that go through my start date. So it should pick up whole calendar years (01/01/2019 - 31/12/2019), quarters (01/04/2019 - 30/06/2019) and any dates that cover the month of May.

How to fix date filter VBA as it is not picking up all dates that fall within my range

纵然是瞬间 提交于 2021-01-20 12:05:59
问题 I'm trying to create a filter that will filter out all dates that fall within the dates I choose. The dates I choose will always reflect a whole month. For example, if I need data for May 2019, I will input my start date as 01/05/2019 and my end date as 31/05/2019. My data filter will need to pick up all rows that go through my start date. So it should pick up whole calendar years (01/01/2019 - 31/12/2019), quarters (01/04/2019 - 30/06/2019) and any dates that cover the month of May.