Dynamic IF Formula that changes value based on input cells

Joined
Aug 30, 2022
Messages
11
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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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