Issue with a formula

richard1234567891011

Board Regular
Joined
Feb 21, 2018
Messages
91
I have two formulas. But both of them are not working in the right way.
the first formula is:
=IF(COUNTIF(G31:G37,$E54),$F54,0) issue: It is not able to read a cells were inside are more than 1 letters. (E54=X) So the main problem that I have with this formula is that is not able to read a cell, like I have, were inside there are more letters than 1, like X, Y, Z and the result of this formula give me 0 instead of F54.
the second formula is:
=IF(ISNUMBER(FIND($E54,G31)),$F54,0) issue: It reads only a cell and not a area like the previous one. But contrary to the previous one it is able to read an X,Y,Z in the same cells and it is able to give me as result F54 if there is an X (E54=x)

My issue at the end is: I would like to have a formula that it is a mix of both. A formula able to read an area (like the first one) and able to read a letter in a cell were inside there are also other letters. (like the second one.)
 
Last edited:
Do this

1. Create a blank sheet
2. In E54 put A
3. In F54 put X
4. in G31 put 123A5
5. in G32 put BCDEF
6. in a blank cell anywhere on that sheet enter
=IF(SUM(ISNUMBER(SEARCH($E$54,$G$31:$G$37))+0)<>0,$F$54,0)
Array formula, use Ctrl-Shift-Enter

Result is X the value in F54
The formula has searched G31:G37 for the value in E54 "A" and found it in the middle of G31.

7. Now change E54 to G - result is 0 because G does not exist in G31:G37

Check the value in E54 on your main spreadsheet - ensure it is ONE character long and it does appear in G31:G37 since the above formula clearly works.


1r3x54.png


In mine is not working man.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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