If one cell contains text, return value of another cell, if no - do nothing

Slenderwoman

New Member
Joined
Jan 14, 2016
Messages
2
Hello,

I'm looking for a "1" in A and want return value from C-1 in B.

If statement does not work for me, because
=IF(A2=1;C1;"")
changes previous row height noticeably, when the A2=/=1.

How maintain former row height?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hello,

I'm looking for a "1" in A and want return value from C-1 in B.

If statement does not work for me, because
=IF(A2=1;C1;"")
changes previous row height noticeably, when the A2=/=1.

How maintain former row height?
change ; to a comma.

Code:
=IF(A1=1,C1,"")
 
Upvote 0
Thanks for the reply, but when running localized Excel, for example the Polish version, it changes not only the language but also the usage of ; as you would use the comma (this is because in Polish comma is used as the delimiter for fractions).

But besides that, it doesn't answer the question further in my post; IF works fine, I just want to keep my previously set row height if the condition is not satisfied. Is there a way to "lock" row height? Or should I use VBA
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,891
Members
449,058
Latest member
Guy Boot

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