adding additional if statements to multiple tabs at once

AngelinaT

New Member
Joined
Jun 24, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello, I'm looking for some guidance on how to quickly add further if statements to multiple tabs which are in themselves linked to other tabs in the document.

I tried highlighting the tabs I wanted to change and amending the formula but this also changed the link to tab too.

an example of the formula is below. its purpose is to reformat to text and change the values to remove the , in years. I need to add in 2020 & 2021. I want to change on all tabs without changing where its looking at, in this case the tab called SOCI.

Hope you can help

=IF(SOCI!A2="-","\textendash \hspace{0.1em}",IF(SOCI!A2="2,018",2018,IF(SOCI!A2="2,019",2019,(SOCI!A2)))
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
What about changing your formula to:
=IF(SOCI!A2="-","\textendash \hspace{0.1em}",TEXT(A2,0))
No further need to update for more years.
 
Upvote 0
Just remembered the initial intention of your post.
=IF(SOCI!A2="-","\textendash \hspace{0.1em}",TEXT(SOCI!A2,0))
You need the extra SOCI! in the TEXT function to anchor the reference when copying to other worksheets.
 
Upvote 0

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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