VBA Formula

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Hello all

Can you help please on this formula

Code:
=IF(ISNUMBER(FIND(Well-being,F24)),"",B24-$B$8)

I am trying to say the following

If = F24 = "Well-being" then leave cell blank, if = F24 is not equal to "Well-being" then B24-$B$8

The reason why I tried to use (ISNUMBER(FIND( is because "Well-being is part of a string of numbers and text

IE: 1: Well-being fghfhj or 5: 114A Well-being hfhfh
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
The cell always start with well-being?

If so you can do

Code:
=IF(LEFT(F24,10)="Well-being","",B24-$B$8)
 
Upvote 0
Hi JumboCactuar

Thanks for the reply

THe cell will not start with Well-being and is in a string on numbers and text as per the example, this is why i did not use (Left(
 
Upvote 0
How about
=IF(ISNUMBER(SEARCH("Well-being",F24)),"",B24-$B$8)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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