ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula help. Different result dependent on answer (https://www.excelbanter.com/excel-worksheet-functions/22304-formula-help-different-result-dependent-answer.html)

martinco

Formula help. Different result dependent on answer
 
Hi,

I would like to write a formula which allows the user to put in the control
data as either a % or £ sterling. For example:

Rent £100 in year 1.

For year 2 they either know the % increase or have a fixed figure, IE £200.

Is there a formula which would identify whether they have entered a % or £
figure?

Thanks

Ian

Peo Sjoblom

Not really unless they use text where you could look for the text strings,
otherwise it is just numbers with different formats (displays), there is a
function called cell("format") but that would not be very stable

--
Regards,

Peo Sjoblom


"martinco" wrote in message
...
Hi,

I would like to write a formula which allows the user to put in the
control
data as either a % or £ sterling. For example:

Rent £100 in year 1.

For year 2 they either know the % increase or have a fixed figure, IE
£200.

Is there a formula which would identify whether they have entered a % or £
figure?

Thanks

Ian




Bernard Liengme

The percentage values will (hopefully) be less than or equal to 1 (100%)
The money value (hopefully) will be more than £1.00
So =IF(B1<=1, "Percent","Loot")
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"martinco" wrote in message
...
Hi,

I would like to write a formula which allows the user to put in the
control
data as either a % or £ sterling. For example:

Rent £100 in year 1.

For year 2 they either know the % increase or have a fixed figure, IE
£200.

Is there a formula which would identify whether they have entered a % or £
figure?

Thanks

Ian




martinco

Simple - very clever - thank you!

"Bernard Liengme" wrote:

The percentage values will (hopefully) be less than or equal to 1 (100%)
The money value (hopefully) will be more than £1.00
So =IF(B1<=1, "Percent","Loot")
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"martinco" wrote in message
...
Hi,

I would like to write a formula which allows the user to put in the
control
data as either a % or £ sterling. For example:

Rent £100 in year 1.

For year 2 they either know the % increase or have a fixed figure, IE
£200.

Is there a formula which would identify whether they have entered a % or £
figure?

Thanks

Ian






All times are GMT +1. The time now is 11:19 PM.

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