Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90280

How to return initial value of a cell formula's IF function

$
0
0

I am attempting to build out an IF statement that contains a long index/match formula in it. I want the IF statement to return the initial value that the index/match statement finds if the logical test is true. Is there a way to go about that without copying and pasting the formula?

=IF(
    INDEX(
        '2019'!$E$5:$BU$133,
        MATCH(
            Sheet1!$C$2&Sheet1!$C$3&$D8, 
            INDEX(
                '2019'!$B$5:$B$133&'2019'!$C$5:$C$133&'2019'!$D$5:$D$133,
                0
            ),
            0
        ),
        MATCH( Sheet1!E$7,'2019'!$E$3:$BU$3,0 )
    ) > '2019'!E6, 
    value_if_true,
    value_if_false
)

So, if the index/match > 2019!E6, i want to return the index/match value. Thanks for the help!


Viewing all articles
Browse latest Browse all 90280

Trending Articles



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