Can someone tell me what is wrong with this formula? Is it too ambiguous? If so, how can I make it more specific?
The formula is on Sheet 3
=IF(E:E <> 'Sheet2'!C:C,SUMIF('Sheet1'!E:E,E:E,'Sheet1'!C:C),0)
What I'm trying to do is pull in $ values from Sheet 1, into Sheet 3, if the deduction code for this $ value doesn't exist on Sheet 2.
Last edited by Idz21; 03-10-2010 at 09:49 AM.
well.... that will never work post a workbook showing expected results
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Attached is the Sample Spreadsheet. If you look in Sheet 3, you'll see the expected result for Column B (highlighted in grey). What needs to happen is that anytime a Deduction Label exists in Sheet 1, and does not exist in Sheet 2, then I need to replicate this deduction in Sheet 3.
Try this:
Amend the ranges as necessary, and copy down.=IF(COUNTIF(Sheet2!$B$1:$B$20,C2),0,INDEX(Sheet1!$A$1:$C$20,MATCH(C2,Sheet1!$C$1:$C$20,0),1))
Cheers,
“To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln
Hi,
I have edited you cells in column B on sheet 3 and re-attached your sample.
=IF(COUNTIF(Sheet2!B:B,C5)=0,SUMIF(Sheet1!C:C,C5,Sheet1!A:A),0)
It works.
Cheers
Tony
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks