Hi ,
It is unfortunate that you are asking us to deduce your logic from your formula , which according to you is not giving you the result you want.
If you can state your requirements in plain English , it will be a few minutes to arrive at a solution ; explain what are the input data cells , where the formula is to be entered , and the logic by which the output is to be obtained. That is all it takes to get a solution from this forum.
Narayan
Narayan,
Thanks for this response.
Apologies, I'm obviously missing something regarding what additional info is required. My original post, I thought, explained exactly what I wanted i.e., I have an array formula that isn't giving the result I expected and I gave an example set of data that isn't playing by the rules - as I see them.
I apologise for then generating responses that weren't quite related to what I wanted, probably because I didn't explain the size of the spreadsheet data I was trying to analyse which made the non-array solutions unuseable.
Can I assume that, given the formula I posted and all your responses that my formula or, variations thereof, work on the data I posted ?
If so, then that is progress as it eliminates any stupid mistakes I may have made in my code.
Going on the above assumption, the only, other, strange thing about the data is that the data: Other and Total are prefixed by a single quote in the original input data sheet (').
I didn't want to confuse the issue by mentioning it before as I wanted to eliminate any possible mistakes in my formula.
So, I'm, logically. comparing, e.g., 'Other with Other and 'Data with Data in the formula.
Now, the above statements and the comments below may have nothing to do with this but ......
If I bring up the Format Cells sub-menu, Excel thinks the cells with either 'Other or 'Data are General format.
If I enter ISTEXT to interrogate either of the cells, Excel thinks the cells are Text i.e., ISTEXT returns a True.
LENGTH gives both cells as length 5 so LENGTH is ignoring the single quote.
LEFT/MID also ignores it.
I've tried CONCATENATE to incorporate the single quote into the comparision string without success, well, the CONCATENATE works ok but the array formula still doesn't give the expected results.
I've Google'd my issue and, one forum thread suggested that the IF needs the first cell in the array formula to be True, otherwise it'll return a False. Don't know on that one.
Anyway, to conclude: I think I've explained what the input cells are - with examples, i.e., "RTH" in cells A1 and A2, "Other" and "Total" in cells B1 and B2, the array formula can be entered in any other cell, really; it's location isn't vital, and the logic; I want a "Yes" to come out of the array formula.
If anyone feels they need further info, please get back to me as this one has me really puzzled.
Unfortunately, I can't get the input data re-coded or amended as it's from a third-party organisation.
Thanks again, very much, for all your responses.