# If Then Formula

#### sneakybeakylike

##### New Member
Hi All!

I'm having a bit of trouble with some formulating... How can I write an If Then statement into a cell so that it displays the value of another cell, or cells?

For example, If A1 > 10, Then B1 = (the value of Cell X)

Thanks a ton!

### Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

#### VBE313

##### Well-known Member
Are you trying to set B1 to the value of Cell X (ex. X1)?

#### sneakybeakylike

##### New Member
No, those were just example values. Here's what I actually need it to do:

If (K2 > 1) Then (Value of F2) = F2 + 0.1

I also plan on replicating the formula all the way down column F.

#### VBE313

##### Well-known Member
VBA Code:
``=IF(K2>1,F2+0.1,0)``

#### sneakybeakylike

##### New Member
Oh cool, I was just dumb and using quotation marks.
Thanks

#### VBE313

##### Well-known Member
You aren't dumb, sometimes we tend to overthink the simplest of tasks!

Replies
9
Views
133
Replies
1
Views
46
Replies
8
Views
44
Replies
0
Views
66
Replies
23
Views
526

1,127,269
Messages
5,623,727
Members
415,986
Latest member
C_Braga

### 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.

### Which adblocker are you using?

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

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