#1
|
|||
|
|||
Nesting and IF & AND statement
I have the following formula which I have validated and it works:
=SUMIFS(Holdings!N:N,Holdings!A:A,'Trial Balance'!C3)-SUMIFS(Holdings!P:P,Holdings!A:A,'Trial Balance'!C3) I now want to add some more to it, I think that an IF & AND statement is correct. =IF(AND(G3="105",D3="Composite"),SUMIFS(Holdings!N:N,Holdings!A:A,'Trial Balance'!C3)-SUMIFS(Holdings!P:P,Holdings!A:A,'Trial Balance'!C3),0) But this is returning a value of ZERO. If I switch it so that the SUMIFS is the value if false & use a ZERO for value if true the formula works. Is there something wrong with my IF AND statement? Once I get the formula to work for the true side instead of zero for the false it will become a nested formula to for other "Numbers" in G3. Thanks Everyone! |
#2
|
||||
|
||||
Probably remove the double quotes around the value for G3 like G3=105
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
awesome! So if I understand this, quotes are only needed around actual text, if it a hard reference of a number it is not?
|
#4
|
||||
|
||||
Exactly. If it really is text double quotes are needed G3="text" needs the quotes otherwise, no joy.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#5
|
|||
|
|||
Great! Thank you!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need a little help with an if statement | cangelis | Excel | 2 | 04-08-2015 05:55 PM |
Script starts nesting tables without reason | selman555 | Word VBA | 1 | 10-17-2014 01:01 AM |
Add a statement | sma | Word | 6 | 03-23-2014 10:30 AM |
Nesting Variables SET, LISTNUM, and REF | Wyskers | Word | 1 | 11-13-2011 05:43 AM |
Help with IF Statement | limpbizkit | Excel | 4 | 02-24-2011 09:16 PM |