Return a cell reference value in formula

atp01

New Member
Joined
Jul 21, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, i have no idea how to title it, i will just explain what i am trying ot achieve.

Cell A4 value is either a number or "N/A"
Cell A5 has a reference to cell A6 in Sheet 2 which has a value of 100
I would like to make A5 value change according to the value of A4
IF A4 is "N/A" then return "N/A"
IF A4 is number then A5 will return the value of A6 in sheet2

I use the following formula,
=IF(A4="N/A", "N/A", =Sheet2!$A$6)

And apparently this is not working.

Appreciate any helps and thank you in advance
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the MrExcel board!

Try
Excel Formula:
=IF(ISNA(A4),A4,Sheet2!A6)
 
Upvote 0
try
=IF(ISERROR(A4),"N/A",Sheet2!$A$6)

or if not an error - is it just text N/A

also have = will give an error in the formula

=IF(A4="N/A", "N/A", =Sheet2!$A$6)
change to
=IF(A4="N/A", "N/A", Sheet2!$A$6)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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