ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to create a function (https://www.excelbanter.com/excel-worksheet-functions/211493-how-create-function.html)

FrozenRope

How to create a function
 
Thank you in advance for your help. I'm just learning about functions and am
stuck on how to achieve the following "IF/THEN" scenario:

Cell A1: $100
Cell B1: 21%
Cell C1: $200

Cell D1 will contain the formula:

I need a function where the value found in A1 ($100) will be displayed IF B1
is larger than 30%. If it's not larger, display the value in C1 ($200).

Also, how would this change if the 30% is a value that I want to globally
change (I've created a defined name of "Value_Percentage")

Thanks for the shove in the right direction. Much appreciated!

John C[_2_]

How to create a function
 
=IF(B1value_percentage,A1,C1)
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"FrozenRope" wrote:

Thank you in advance for your help. I'm just learning about functions and am
stuck on how to achieve the following "IF/THEN" scenario:

Cell A1: $100
Cell B1: 21%
Cell C1: $200

Cell D1 will contain the formula:

I need a function where the value found in A1 ($100) will be displayed IF B1
is larger than 30%. If it's not larger, display the value in C1 ($200).

Also, how would this change if the 30% is a value that I want to globally
change (I've created a defined name of "Value_Percentage")

Thanks for the shove in the right direction. Much appreciated!


FrozenRope

How to create a function
 
Worked like a charm John. Thank you VERY much.

"John C" wrote:

=IF(B1value_percentage,A1,C1)
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"FrozenRope" wrote:

Thank you in advance for your help. I'm just learning about functions and am
stuck on how to achieve the following "IF/THEN" scenario:

Cell A1: $100
Cell B1: 21%
Cell C1: $200

Cell D1 will contain the formula:

I need a function where the value found in A1 ($100) will be displayed IF B1
is larger than 30%. If it's not larger, display the value in C1 ($200).

Also, how would this change if the 30% is a value that I want to globally
change (I've created a defined name of "Value_Percentage")

Thanks for the shove in the right direction. Much appreciated!



All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com