IF equation Help

JCK11

New Member
Joined
Nov 11, 2017
Messages
9
Hi All
I am trying to set up an "if()" equation where I did like to controle the number to insert based on a cell with or without "x"

I have got to the following equation, but it does not work.

=if(AN16="x",BE16=AH16,BE16=Z16)

So the idea is of course that if AN16 has the value x then
BE16=AH16 and else BE16=Z16


Might be a quick fix, and maybe one of you can help?




Thanks a lot in advance
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi Steve the fish
Thanks for prompt answer, but when I type your suggestion in I get the same mistake: "The formula you typed in contains an error".

Can it be something with the setting of the cells, right now it is set to "General"?
 
Upvote 0
Either you havent used the formula i have given you or your seperator isnt a comma id have thought. Which country are you in?
 
Upvote 0
Ok you may need to use semicolon ; instead of comma ,
You also may need to use the local word for IF. I wouldnt know what that is though.
 
Upvote 0
Maybe hidden characters?

In AH16 I've entered value 1
In Z16 I've entered value 666

In BE16, this formula works for me (no error message) when I enter/delete "x" in AN16
Code:
=IF(TRIM(LOWER(AN16))="x",AH16,Z16)
Returning values of either 1 or 666
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top