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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,214,560
Messages
6,120,222
Members
448,951
Latest member
jennlynn

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