show cell value depending on what is in matched E:E

nzt101

New Member
Joined
Sep 20, 2022
Messages
30
Office Version
  1. 365
  2. 2021
  3. 2007
Platform
  1. Windows
Hi guys,

In a workbook i have pages Data and Sheet1, in Sheet1!E:E i will sometimes have the text N/A
the below code goes into a cell and shows the result, instead of showing N/A is there a way of making the result say NONE instead?

the concat and randbetween combines a prefix that is needed when the E:E contains something other than N/A, (which currently works perfectly as is)
but if the E:E has N/A i'd like it to just say NONE instead of "prefix N/A"
(the below also allows me to type in a manual option into E19 which i need to stay)

Excel Formula:
=CONCAT(INDEX(Data!E2:E7,RANDBETWEEN(1,ROWS(Data!E2:E7))))&IF(E19<>"",E19,LET(m,MATCH(C3,Sheet1!D:D,0),d,INDEX(Sheet1!E:E,m),IF(d<>"",d)))

I'm not sure if the above is possible, but thanks for any help :)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Maybe wrap the above in IFERROR( .... formula... , "NONE")
 
Upvote 0
Hey awoohaw,

I tried that, but it gave me exactly the same result as the current formula does, because theres no error in the formula or data to make it show NONE
 
Upvote 0
Hey awoohaw,

I tried that, but it gave me exactly the same result as the current formula does, because theres no error in the formula or data to make it show NONE
please use the xl2bb add in and put a small sample of your data and the formula so it can be used.
 
Upvote 0
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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