IF function return values: how to combine text with cells

lookingforanswers1

New Member
Joined
Mar 24, 2021
Messages
2
Hi all,

Most likely this is a super silly question (apologies in advance).

As you know the IF function compares two values, and returns either true or false.

What I want to do is to tweak the return portion, for example:

A1=1
B1=2

=IF(A1=B2, "No change", "Changed from A1 to B1")

On the 2nd return option, I don't know how to combine the text I want to have as an output, with the actual value of the cells. If the result is FALSE, I would like to have as an output "Changed from 1 to 2".

Is there a way in excel to do this?

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(A1=B2, "No change", "Changed from "&A1&" to "&B1)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,576
Members
448,972
Latest member
Shantanu2024

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