Linking the sign value in another cell to a formula in another

Mark McInerney

Active Member
Joined
Apr 4, 2012
Messages
259
Office Version
  1. 365
Platform
  1. Windows
I am trying to create the following:

=IF(C4&INDIRECT(D4)&E4,"Y","N")

in short this would be =If(c4>e4,"Y","N") - the value in cell d4 is ">"

where D4 can be changed to ">" "<" or "="

Is this possible? Thanks - Mark.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
with an evaluate function in a named formula you can. To do so:

1) Select cell F4.
2) Go to Formulas,
3) Define Name,
4) name it whatever you like (I used myFormula),
5) in the "Refers to" section enter =EVALUATE(c4 & d4 & e4)
6) click OK.

Then when you type =myFormula (or whatever you named it) in a cell it will evaluate the expression created by concatenating the three cells to the left of it, as in the examples below. I'll leave it to you to make the adjustments if you want "Y" and "N" instead of TRUE and FALSE.

Drawback to this approach is that the sheet would need to be saved as xlsm. If the xlsm is a problem then nested IFs and ANDs could be used as depicted in column G

Book1
CDEFG
45=5TRUETRUE
510<5FALSEFALSE
610>5TRUETRUE
710*550
810-55
92^532
1010/52
115=5TRUE
Sheet2
Cell Formulas
RangeFormula
G4:G6G4=IF(AND(D4=">",C4>E4),TRUE,IF(AND(D4="<",C4<E4),TRUE, IF(AND(D4="=", C4=E4),TRUE,FALSE)))
F4:F11F4=myFormula
 
Upvote 0
Hi JGordon11 - I'll give it a go - Many Thanks for taking the time to review my query - really appreciate it - Happy Xmas to you and family! Thank You.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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