how to subtract cells from different sheets with the same id?
In my sheet A I have an ID and a Modify column just like sheet B. I want to subtract the Modify of sheet B with the one of sheet A that have the same ID.
can you help me with a formula?
Best Answer
-
You can use a cross-sheet formula to pull in the modify value from the other sheet, then subtract them.
Assuming you want to calculate Sheet A Modify - Sheet B Modify, you could create the following on Sheet B:
The Sheet A column formula is:
=INDEX({test - Sheet A - Modify}, MATCH(ID@row, {test - Sheet A - ID}, 0))
In narrative form, we're telling Smartsheet to pull the Sheet A Modify value from the Sheet A row that has an ID matching the ID of this row on Sheet B.
www.linkedin.com/in/juliefortney-pmp-smartsheetpartner-lssblackbelt
Answers
-
You can use a cross-sheet formula to pull in the modify value from the other sheet, then subtract them.
Assuming you want to calculate Sheet A Modify - Sheet B Modify, you could create the following on Sheet B:
The Sheet A column formula is:
=INDEX({test - Sheet A - Modify}, MATCH(ID@row, {test - Sheet A - ID}, 0))
In narrative form, we're telling Smartsheet to pull the Sheet A Modify value from the Sheet A row that has an ID matching the ID of this row on Sheet B.
www.linkedin.com/in/juliefortney-pmp-smartsheetpartner-lssblackbelt
-
Thank you very much, I already ran it and it worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!