Excel question
# | Post |
---|---|
1 | Hi =if(a1=a, and b1=a, and c1=a,"true","fa- tuiboy1 - 2021-05-27 13:31:00 |
2 | =IF( AND(A1="a", B1="a", C1="a"), "true","false&q- double quote after false, that's the message board messing things up Edited by king1 at 1:52 pm, Thu 27 May king1 - 2021-05-27 13:50:00 |
3 | Cheers, will give it a go tuiboy1 - 2021-05-27 14:23:00 |
4 | Nice. Been having fun playing with modifying the formula. Works well for many situations. I must say I like fiddling around with excel formulas. Can't/don't do graphs and other 'fancy' stuff more because I'm not that interested but I like what can be achieved with formulas. ETA: Must point out king1 that your formula specifies that cels a1,b1,c1 must have an exact match for "a" (the letter a in actuality as you have it in quotes) . However tuiboy's original question want's the b1,c1 cells to simply match what is IN cell a - (they also stated a1=a but that's a given anyway). Edited by nice_lady at 2:55 pm, Thu 27 May nice_lady - 2021-05-27 14:49:00 |
5 | i figured the 'a' must have been a value since to be a cell reference it needs a column/row format eg a1... although I suppose it could be a cell name, albeit a slightly unimaginative one, better off just doing an absolute reference eg $A$9 Edited by king1 at 3:01 pm, Thu 27 May king1 - 2021-05-27 14:58:00 |
6 | king1 wrote:
Well I just thought I'd mention it in cast tuiboy got results they didn't want lol....... nice_lady - 2021-05-27 15:08:00 |
7 | all good king1 - 2021-05-27 15:13:00 |
8 | Cheers Guys, King1 was correct in what I wanted. And it worked. tuiboy1 - 2021-05-28 10:51:00 |
9 | Another question tuiboy1 - 2021-05-28 11:42:00 |
10 | C1="A" changes to C1="B" tuiboy1 - 2021-05-28 11:49:00 |
11 | the if has three parameters they can be nested but it gets messy if you have too many, normally you might place an if statement into the true or false parameter... looking at your formula, you have the nested if in a non existent 4th parameter, not sure but maybe what you trying to do is which is two complete independent IFs nested in an AND - which doesn't really make much sense, I think all you will get is a true or false in that cell Could be you mean - if true, calculate next if etc We probably need to know more about the context Edited by king1 at 12:20 pm, Fri 28 May king1 - 2021-05-28 12:13:00 |
12 | Thanks for that. Think I might have written it wrong. and so on tuiboy1 - 2021-05-28 12:59:00 |
13 | That last row meant to be tuiboy1 - 2021-05-28 13:00:00 |
14 | I take it these are mutually exclusive, ie only one of the IFs will ever be true at a time? king1 - 2021-05-28 13:19:00 |
15 | Yep tuiboy1 - 2021-05-28 13:25:00 |
16 | note i've used the proper cell references (ie the A1), basically the first two FALSE parameters are replaced with another IF =IF(AND(A1=1,B1=1,C1=1),"- so if you place 1 and 0 in whichever row has all 1's will be the Row # displayed - remove the dash at the end of each row, messageboard does that. Is this what you had in mind? Edited by king1 at 1:42 pm, Fri 28 May king1 - 2021-05-28 13:41:00 |
17 | Sorry, i should have put the cell reference Don't worry if its to confusing tuiboy1 - 2021-05-28 14:24:00 |
18 | take the dash out tuiboy1 - 2021-05-28 14:25:00 |
19 | that is showing three IF statements separated by commas, which is invalid To test it I would also change your "TRUE" to "TRUE1","TRUE2&- Edited by king1 at 3:16 pm, Fri 28 May king1 - 2021-05-28 15:14:00 |
20 | F1 is equal to A1 plus B1 tuiboy1 - 2021-05-28 15:35:00 |
21 | oh ok thats a bit different to what i was thinking. try this in F1 first compares C1 to A1 and B1 - if A1/B1/C1 all the same, outputs C1 as true, otherwise outputs the sum of A1 and B1 as false Edited by king1 at 3:51 pm, Fri 28 May king1 - 2021-05-28 15:49:00 |
22 | LOL nope, its too confusing, so don't worry about it unless you want to keep trying.... A1 =2 tuiboy1 - 2021-05-28 16:25:00 |
23 | halfway there then G1 needs to be only thing i'm not sure of is Do you mean all Rows? or what? Edited by king1 at 5:01 pm, Fri 28 May king1 - 2021-05-28 16:59:00 |
24 | what exactly is being nested? what is this a spreadsheet of ? context is everything... I'm happy to keep going but it will take an awful long time if it's an hour between posts... Edited by king1 at 5:13 pm, Fri 28 May king1 - 2021-05-28 17:09:00 |
25 | I think thats it, kind of tuiboy1 - 2021-05-28 17:32:00 |
26 | it might get a bit messy... what do these numbers go up to? The whole point of spreadsheets is to eliminate the need for hardcoding in numbers like you are wanting. king1 - 2021-05-28 17:40:00 |
27 | so what you're looking for nested is Hopefully you don't need to go to 99, there are limits... can't see any easier way to do it Edited by king1 at 5:55 pm, Fri 28 May king1 - 2021-05-28 17:54:00 |
28 | Fantastic, will give it a go. tuiboy1 - 2021-05-28 18:21:00 |
29 | Yep that works. Thanks alot. Cheers tuiboy1 - 2021-05-28 18:30:00 |
30 | One tip; if I have a complex expression, I build it up on a new sheet or add extra columns so that I can 'show working'. So I might have a column that shows the first part, another column that shows the second part and a third that has the combined result. Once I know the formula is correct and working, then I can hide columns or just combine the result into one nested expression. Also ' trace precedents' in Excel is useful for expressions as most common mistakes I find are just referencing the wrong cells gblack - 2021-05-29 09:17:00 |
31 | Hi again, hope you had a good weekend. tuiboy1 - 2021-06-01 21:40:00 |
32 | when merging formulas you need to make sure you are selecting all the text inside the cell as if you are editing it, you can't just copy the cell and paste into a formula in a different cell (different type of object) basically replace every reference to that cell with the formula from the other cell. It gets messy though, you need to remove the leading = and they don't always work as expected without modification. There are also limits to the depth of nested IFs, later versions I believe is 64. You should be probably looking at using a lookup table if you're getting anywhere near that level. Another option is just to hide the non-essential row/column king1 - 2021-06-02 08:59:00 |