excel-formula

Excel VBA - How to add dynamic array formula

佐手、 提交于 2020-05-15 02:28:09
问题 I am adding a formula to a worksheet via VBA which should be: =UNIQUE(IF(TableA[ColumnA]=A1,TableA[ColumnB],"")) This utilises the new SPILL feature in Excel to give me a list of column B values where the related value in column A matches what is in cell A. I'm also applying the UNIQUE function to remove any multiple blank ("") results. This works perfectly if I manually type the formula into Excel, however in using VBA to add the formula, Excel is adding @ symbols within the formula, and

Write properly a formula in Excel VBA

不打扰是莪最后的温柔 提交于 2020-04-17 21:40:30
问题 I already asked a question like this before, but seems that the answer given is not working in this case this is my code: Worksheets("Sheet").Range(myRange).formula = "=CONCATENATE(CODICI!" & stringCodiceCella & ";" & stringDesignazioneCella & ")" Note that stringCodiceCella is a String, and stringDesignazioneCella is also a String. Following this link A working example of formula in VBA I can't see the error. 回答1: You can use "," in place of ";" as suggested by @BigBen Worksheets("Sheet")

Write properly a formula in Excel VBA

江枫思渺然 提交于 2020-04-17 21:40:16
问题 I already asked a question like this before, but seems that the answer given is not working in this case this is my code: Worksheets("Sheet").Range(myRange).formula = "=CONCATENATE(CODICI!" & stringCodiceCella & ";" & stringDesignazioneCella & ")" Note that stringCodiceCella is a String, and stringDesignazioneCella is also a String. Following this link A working example of formula in VBA I can't see the error. 回答1: You can use "," in place of ";" as suggested by @BigBen Worksheets("Sheet")

Using Conditional Formatting with Icon Sets with six conditions

送分小仙女□ 提交于 2020-04-11 07:44:09
问题 I'm using Conditional Formatting, I've been playing around with Conditional Formatting for a couple of days but I can't get the response I'm looking for. I'm wanting a colored circle to appear in cell based on the marks entered. But the problem is I have six conditions but Excel supports only five I think. Is this possible? 0-20 red color circle 21-39 green color circle 40-54 blue color circle 55-64 yellow color circle 65-79 orange color circle 80-100 pink color circle 回答1: If you are limited

How to write Excel functions to club stocks [closed]

拜拜、爱过 提交于 2020-03-25 16:04:40
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 days ago . I have several ingredients (variables), let's call them A, B, C, D, E. Now my recipes require: recipe1 = A(1 piece) + B(1 piece) recipe2 = C(2 pieces) + D(3 pieces) + E(1 piece) Now suppose if the number of ingredients I have in stock is A=40, B=66, C=95, D=136, E= 52. I want the

IF with multiple Vlookup each with multiple outputs

淺唱寂寞╮ 提交于 2020-03-25 16:04:38
问题 I have a question regarding the below excel formula, the case is I want to lookup for a value in 'Workflow (2)' sheet if there're 3 conditions fulfilled 1- the value of C14 appears in O column in 'Workflow (2)' sheet (it may appear multiple times) 2- the value of E13 appears in I column in 'Workflow (2)' sheet (it may appear multiple times) 3- the value of D14 appears in D column in 'Workflow (2)' sheet (it may appear multiple times) but there's just one match for the 3 values together, then

Generate a list of combined columns

人走茶凉 提交于 2020-03-24 00:41:39
问题 I need to generate a list of possible outcomes given 5 unique rows of information. say A1=12, A2=34, then B1=Some, B2=sOme, B3=soMe, B4=somE, then C1=56, C2=78 you get the idea all with the final row being E and all the outcomes will be shown in row F I just want to show unique outcomes, how could do I go this in either Google Sheets or Excel? this is an expansion of a previously answered question here Generate all possible combinations for Columns in Google SpreadSheets 回答1: paste in F1 cell

Incorrect result from CurrentRegion when used in a function called from a cell

我的梦境 提交于 2020-03-23 12:23:31
问题 I'm trying to write a VBA function to be called from a cell. In this function I need to use the CurrentRegion property but it returns an unexpected result. The function: Function GetVarRange() As String Dim rngRangeToLeft As Range, wks As Worksheet Set wks = Application.Caller.Worksheet Set rngRangeToLeft = wks.Range("A1").CurrentRegion GetVarRange = rngRangeToLeft.Address End Function The result I get in the cell is $A$1. There are values in A1, and all around it, the CurrentRegion is

Excel Help: Dynamic range + Data Validation

一笑奈何 提交于 2020-03-16 07:36:11
问题 I got a problem with some popular Excel question, dynamic ranges and data validation drop-downs and auto-populate. Lets say I got 2 sheets, and on one sheet I got drop-downs to choose from another sheet, and that is not a problem when I define cells and range using: =OFFSET($A$19;;;COUNTA('0528 - info'!$E$2)) ..but what about when I wanna add some new cells in between,so that they can be automatically recognized in which group they belong: As you see for instance Column B has some "groups"

Searching against a partial match in excel

假如想象 提交于 2020-03-15 07:19:53
问题 Tab-A contains a two columns. Column 1 is website domains, column 2 is filled with a formula that should output emails found in Tab-B: backpacks.com / FORMULA TO FIND EMAIL FROM TAB-B buy.bags.io / FORMULA TO FIND EMAIL FROM TAB-B shop.plasticbags.net / FORMULA TO FIND EMAIL FROM TAB-B bags.org / FORMULA TO FIND EMAIL FROM TAB-B Tab-B contains two columns. Column 1 is emails, column 2 is email domains: admin@backpacks.com / backpacks.com hi@bags.io / bags.io hello@plasticbags.net /