A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Try
=B1-INDIRECT("'tab A'!B"&A1)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have data in two tabs. Tab A contains data for 40 vessels, labeled 1-40. I would like to use this data from tab A, in an equation in tab B. The data in tab b will have random vessel numbers, and I have a total of 144 samples, so to pull the data to subtract from the same 40 rows in tab A will be quicker.
I have done a longer IF function, i.e. =IF(A1=1, (equation 1), IF(A1=2, (equation 2), IF(A1=3, (equation 3), "-")))
What I would like to do is, in column C in tab B, IF(A1=1, (B1-'tab A'!B$1), IF(A1=2, (B1-'tab A'!B$2), etc,
I don't want to have to write out all 40 IF statements if there is a better way.
Is there any way to make that a shorter equation to accomplish this task or am I stuck writing out the full sentence?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.