I'm looking for a formula to do this...
-
Say I have 5 cells. If at least 3 of those cells have '100' in them, another cell should display a set value such as "WooHoo" or whatever. Here's the catch: if 4 of the cells have at least '100' something else should be shown.
Is there a formula to do something like this? -
If that VB in your name is abbreviation for 'Visual Basic' then I think you're capable of doing it yourself - as you see, like Word, Excel too is scriptable with dialect of Basic called Visual Basic for Applications (VBA).
I probably could manage to write it, but I'm too lazy and I don't even have Office installed on this computer. (MSDNAA doesn't provide me with it so I'm on openoffice) -
The point was to make it without using VBS for Office.... hence 'Excel Formula'.RoyalSchrubber said:If that VB in your name is abbreviation for 'Visual Basic' then I think you're capable of doing it yourself - as you see, like Word, Excel too is scriptable with dialect of Basic called Visual Basic for Applications (VBA).
I probably could manage to write it, but I'm too lazy and I don't even have Office installed on this computer. (MSDNAA doesn't provide me with it so I'm on openoffice)
Anyways, countif seems to have done the job I needed it to. -
Hi!VB Man said:
The point was to make it without using VBS for Office.... hence 'Excel Formula'.RoyalSchrubber said:*snip*
Anyways, countif seems to have done the job I needed it to.
What you ask, if I understood it correctly, is very simple.
I made an example (download here in sendspace).
If you have any questions feel free to ask!
Hope this helps,
Ricardo Clérigo
-
=IF(COUNTIF(A1:A5,"100")=3,"WhooHoo","HooWoo")
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.