Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11571

Using a Formula multiple times in one cell with only one value changing

$
0
0

I have a pretty long formula which I want to use multiple times in a cell. I want to reference to the sheets 'Project 2' to "Project 20'. Since this formula is rather long i would like to know if there is a way to reference to that formula and just tell Excel to increase the number of the project by 1 so i dont have to use the whole formula 20 times in one cell. The details of this formula are not important. I would just like to know if there is some kind function i could use to have it like this:'Original Formula (Project1)+Original Formula (Project 2)...Original Formula (Project 20)

Original formula:

If(And('Project 2'!$K$2<=Today();Today()<='Project 2'!$U$2;COUNTIF('Project 2'!$A$6:$A$100;Sheet1!A6)=1);", ";"");IF(AND('Project 2'!$K$2<=TODAY();TODAY()<='Project 2'!$U$2;COUNTIF('Project 2'!$A$6:$A$100;Sheet1!A6)=1);"P2";"")

I googled, looked through stackoverflow and tried to use chatgpt but I couldn't define my problem enough to get the right search results. I tried to work with the name manager but I couldn't manage to get excel to iterate the number up to Project 20


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>