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
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!