Hi SmartSheet Community!
I need some help with a formula which will compare two values across sheets and then return a value stored in one sheet to the other if there is a match. This is what I currently have which may give some sense of what I am trying to do, but I don't quite know enough to get it right:
=IF(AND([Bill Group]@row = INDEX({Bill Group Range}, MATCH([QLICI ID]@row, Ancestors@row = 1, INDEX({Bill Amount}, MATCH([QLICI ID]@row, {QLICI ID Range}, 0))))))
The two main sheet are:
- Master Transaction Data - stores fees and the frequency they will be billed. Will include all Bill Group column that will list multiple values in dropdown column (Mar, June, Sept, Dec) and Bill Amount and QLICI ID (identifier)
- Billing Schedule - Used each quarter to send notice of applicable fees. Each row (by QLICI ID) will contain the Bill Group (single quarter that is currently being billed) and I want to reference the other sheet to pull in the Bill amount.
I want the Billing Schedule to look at the Master Transaction Sheet to see if a fee should be included in the bill group for the quarter. Based on QLICI ID, if the Bill Group in the Billing Schedule is contained in the Bill Group of the Master Transaction Sheet, then I want it to return the value of the Bill Amount in the Master Transaction Sheet for that QLICI ID. If used as a column formula, it would be great to add that it should only apply to rows where ANCESTORS does not equal "0".
I currently have Bill Group in the Master Transaction sheet set up as a Multi-select drop-down with each quarter. Not sure if that will work. Because of this, I would want the formula to look to see if the value is CONTAINED not EQUAL.
Simply, I want to compare the value of two columns, each contained in a different sheet, and if the value of one column (Sheet 2) is contained in the value of the other column (Sheet 1), then I want it to return a value from Sheet 1 to Sheet 2, based on the use of QLICI ID for the match, and preferably only for rows in Sheet 2 where Ancestors does not equal 0.
Appreciate any guidance! Everyone is always so great with their suggestions and answers!
Thanks, Ann