Forum Discussion
Prevenda_XPTA
Sep 02, 2021Copper Contributor
Multiple parameters for formula IF (with different cells)
Hello, I'm trying to compose a formula using "IF", considering the complexity of using parameters informed in two columns to defining the result in a third column(if true) based on the selectio...
- Sep 02, 2021
=IF(AND(A2="Company 01",B2="Project"),120,IF(AND(A2="Company 01",B2="Presales"),90,IF(AND(A2="Company 02",B2="Project"),150,IF(AND(A2="Company 02",B2="Presales"),115))))
=IF( AND( A2 = "Company 01" ), { B2 = "Project" ) ), { 120 ), { IF( AND( A2 = "Company 01" ), { B2 = "Presales" ) ), { 90 ), { IF( AND( A2 = "Company 02" ), { B2 = "Project" ) ), { 150 ), { IF( AND( A2 = "Company 02" ), { B2 = "Presales" ) ), { 115 ) ) ) )
Riny_van_Eekelen
Sep 03, 2021Platinum Contributor
Prevenda_XPTA As a variant, create a lookup table with the parameters and use one of several possible functions to find a value based on the company name and description. The attached workbook contains three examples using XLOOKUP, SUMIFS and SUMPRODUCT.
Note that I have used named ranges to make the formulae easier to read.
Prevenda_XPTA
Sep 03, 2021Copper Contributor
Riny,
Thank you for your help, it a interesting way to solve the problem.
Thank you for your help, it a interesting way to solve the problem.