Array or list

Nsdqdu

New Member
Joined
May 3, 2002
Messages
8
I cannot get this formula to work:
IF(G9="H""K""L""M""N""O""P",H8-E9,H8)))

If G9 has any of those letters I want it to perform the h8-h9 formula. I have tried a bunch of stuff and I am even using the "excel 2002 formulas" book by Walkenbach. I don't get an error, it will only recognize if I have 1 letter in the arguement. I tried using brackets around the group of letters as well.
This message was edited by Nsdqdu on 2002-05-04 17:17
This message was edited by Nsdqdu on 2002-05-04 17:18
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
=IF(OR(G9={"H","K","L","M","N","O","P"}),H8-E9,H8)


Alternatively:

=H8-(ISNUMBER(MATCH(G9,{"H","K","L","M","N","O","P"},0)))*E9

Aladin
 
Upvote 0
IF((OR(G9="H",G9="K",G9="L",G9="M",G9="N",G9="O",G9="P"),H8-E9,H8))
This message was edited by Nimrod on 2002-05-04 17:32
 
Upvote 0
THANK YOU!!!!!!!! Aladin. I'm not the best at syntax, I was close but still far away. I misused the OR function. You just alieviated a lot of stress from my life. :)
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
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