1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

IF/THEN formula with multiple conditions?

Our take

Are you grappling with the limitations of traditional formulas when trying to analyze complex datasets? Using multiple conditions in an IF/THEN formula can seem daunting, especially when legacy spreadsheets lead to errors like #VALUE!. However, there's a streamlined solution that allows you to automatically evaluate six different conditions. By leveraging a more sophisticated combination of COUNTIFS and IF functions, you can transform your data analysis process. Let’s explore how to create a robust formula that simplifies your workflow and enhances your productivity.

https://preview.redd.it/wg29mr54aqig1.png?width=1876&format=png&auto=webp&s=366daf357e7f300cb176163f9a5ff683f3735c75

What I need is a formula that I can apply to 6 different conditions. So I need it to be if Test condition = TC1 and exposure condition = EC1 then it goes to a specific part of the spreadsheet, etc. (determined by those preset conditions, as the Test condition determines where there is data as otherwise it is blank) and then count the number of “yes“. I want this to be a formula I can include all 6 potential combinations of test condition and exposure condition so I can have it do this automatically for each line of data. I tried a COUNTIFS formula but that just returned a #VALUE! error. I was thinking I could just spaghetti code the formula with a combination of COUNTIFS, COUNT, and IF but I was wondering if there was a more elegant solution. Sorry if this is not well explained I am happy to clarify anything that does not make sense.

submitted by /u/MiddleMassive2087
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles