How do I copy a formula to multiple cells and only change one reference cell but not others?

robgoldstein

Board Regular
Joined
Oct 26, 2013
Messages
165
Office Version
  1. 2019
Platform
  1. Windows
I am trying to copy the following formula that has multiple If Statements referencing multiple other cells for the desired results and only the first cell referenced but not the follow 3 cells referenced in the desired results.
=IF(A2=1,'Team 1'!B13,IF(A2=2,'Team 2'!B13,IF(A2=3,'Team 3'!B13 )))

I just want to change the A2 cell to A3,A4,A5....I always want to reference the B13 cells,
Is there a way to easily do this?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this:

=IF(A2=1,'Team 1'!$B$13,IF(A2=2,'Team 2'!B13,IF(A2=3,'Team 3'!$B$13)))
 
Upvote 0
Maybe
=IF(A2=1,'Team 1'!$B$13,IF(A2=2,'Team 2'!$B$13,IF(A2=3,'Team 3'!$B$13,"")))
Which will avoid getting FALSE if A2 does not equal 1,2 or 3
 
Upvote 0
Thanks so much guys. This is great. Fluff, you little "" is a beautiful touch. Thanks so much
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
FWIW, here is another way ..
=IFERROR(CHOOSE(A2,'Team 1'!$B$13,'Team 2'!$B$13,'Team 3'!$B$13),"")

.. & if those are the actual sheet names and you don't have thousands and thousands of these formulas on your sheet (as the formula contains a volatile function)
=IFERROR(INDIRECT("'Team "&A2&"'!B13"),"")
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,985
Members
452,540
Latest member
haasro02

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top