I need to take the dollar amounts from Sheet 1 and get them into the format in Sheet 2. I already have the first two columns in Sheet 2 populated with the department and account, so I just need to use some lookup function to grab the dollar amounts. I've created a unique identifier in Sheet1 Column C by concatenating the month and account.
I'll be writing the formula in Sheet 2!C2. In English, I want the formula to say:
sumif(Sheet1!C:C,"JanTaxes","only in column D")
I have used nested vlookups before where I referenced a table that I had created associating a department with a column number, but in this case it would only return the first occurence. I can use the sumif to return all occurences, but can't use a variable sum column.
Any insight would be GREATLY appreciated.
Thank you!
Sheet1:
--A------------B-----------C------------D--------E-----------F
Month____Account___Concat_____Finance___IT_____Marketing
Jan--------Taxes-------JanTaxes-------$10-------$0---------$0
Jan--------Rent--------JanRent--------$25--------$0---------$0
Jan--------Software----JanSoftware----$0--------$50--------$0
Jan--------Taxes-------JanTaxes-------$75-------$0---------$0
Sheet2:
-A-----------B----------C---------D----------E
Dept____Account____Jan_____Feb______Mar
Finance---Taxes-------$85
Finance---Taxes-------$25
Finance---Software----$0
IT--------Rent--------$0
IT--------Taxes-------$0
IT--------Software----$50
Marketing-Rent--------$0
Marketing-Taxes-------$0
Marketing-Software----$0
I'll be writing the formula in Sheet 2!C2. In English, I want the formula to say:
sumif(Sheet1!C:C,"JanTaxes","only in column D")
I have used nested vlookups before where I referenced a table that I had created associating a department with a column number, but in this case it would only return the first occurence. I can use the sumif to return all occurences, but can't use a variable sum column.
Any insight would be GREATLY appreciated.
Thank you!
Sheet1:
--A------------B-----------C------------D--------E-----------F
Month____Account___Concat_____Finance___IT_____Marketing
Jan--------Taxes-------JanTaxes-------$10-------$0---------$0
Jan--------Rent--------JanRent--------$25--------$0---------$0
Jan--------Software----JanSoftware----$0--------$50--------$0
Jan--------Taxes-------JanTaxes-------$75-------$0---------$0
Sheet2:
-A-----------B----------C---------D----------E
Dept____Account____Jan_____Feb______Mar
Finance---Taxes-------$85
Finance---Taxes-------$25
Finance---Software----$0
IT--------Rent--------$0
IT--------Taxes-------$0
IT--------Software----$50
Marketing-Rent--------$0
Marketing-Taxes-------$0
Marketing-Software----$0