quakeystand
New Member
- Joined
- Jul 14, 2010
- Messages
- 3
I'm trying to find a way to perform Vlookups with multiple conditions; i.e. If the date matches, and the account code matches, then post the cost data in this cell. I can get the simple Vlookup and IF statements to work individually, but when I try and combine them, it doesn't work. I'm sure more explanation will be needed, but in general, is this kind of problem better solved in VB, or can excel do this? If excel can do this, how do I do it?
E.G.:
From our database:
Date Account Code Cost
3/22/2009 207.89 3000.00
3/22/2009 207.91 18500.00
3/22/2009 207.97 458.00
3/23/2009 207.89 3000.00
3/23/2009 207.91 18500.00
3/23/2009 207.92 187000.00
As you can see, there are unique entries on each day, but not all same account codes are entered daily. I'm trying to lookup and sort this data in another worksheet that does not have the same column/row dimensions. Specifically, I have over 50 account codes to choose from, but only 15 to 20 are used on a daily basis, but not the same 15 to 20 every day. I would like my spreadsheet to look something like this:
Code 3/22/2009 3/23/2009
207.89 3000.00 3000.00
207.91 18500.00 18500.00
207.92 0.00 (or " ") 187000.00
207.93 0.00 0.00
207.95 0.00 0.00
207.97 458.00 0.00
Sorry, my spaces don't carry over well to the posting window...
Thanks,
E.G.:
From our database:
Date Account Code Cost
3/22/2009 207.89 3000.00
3/22/2009 207.91 18500.00
3/22/2009 207.97 458.00
3/23/2009 207.89 3000.00
3/23/2009 207.91 18500.00
3/23/2009 207.92 187000.00
As you can see, there are unique entries on each day, but not all same account codes are entered daily. I'm trying to lookup and sort this data in another worksheet that does not have the same column/row dimensions. Specifically, I have over 50 account codes to choose from, but only 15 to 20 are used on a daily basis, but not the same 15 to 20 every day. I would like my spreadsheet to look something like this:
Code 3/22/2009 3/23/2009
207.89 3000.00 3000.00
207.91 18500.00 18500.00
207.92 0.00 (or " ") 187000.00
207.93 0.00 0.00
207.95 0.00 0.00
207.97 458.00 0.00
Sorry, my spaces don't carry over well to the posting window...
Thanks,