Dynamic IF Formula that changes value based on input cells

Joined
Aug 30, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi Experts,

I am trying to make an interactive sheet that would create a key using specific data to then use as an identifier across multiple sheets. As information is subject to change, I want to add 3 input columns that would essentially:
1. If all cells are blank just uses the same value in the "key" column
2. If I add something in the input cells, then whichever element I change it would override its counterpart in the "new key" column

I've added a manual example to show you what i am trying to do. Looking at this, is there maybe a way to use multple IF functions to do this?
1720290047867.png


Best regards
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about:

Excel Formula:
=IF(AND(ISBLANK(F2:H2)),E2,TEXTJOIN("-",,IF(ISBLANK(F2:H2)=FALSE,F2:H2,TEXTSPLIT(E2,"-"))))
 
Upvote 1
Solution
You can shorten to this:
Excel Formula:
=TEXTJOIN("-",,IF(F2:H2="",TEXTSPLIT(E2,"-"),F2:H2))
 
Upvote 1

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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