financialanalystnoco
New Member
- Joined
- Jul 15, 2015
- Messages
- 7
Hi everyone,
Im having issues with a formula. I want it to be a nested if statement, so that if it says "start" then use the min formula and if it says "Stop" use max. I also want it in array format, and it was working when I had them separated (using min for start and max for stop in different formulas) but I want it all together.
This is what I have right now and I know doesn't work:
=IF(G2="Start",MIN(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=$B2,'Raw Data'!$C:$C))),IF(G2="Stop",MAX(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=Sheet1!$B107,'Raw Data'!$H:$H)))))
This worked before:
{=MAX(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=Sheet1!$B107,'Raw Data'!$H:$H)))}
and
{=MIN(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=Sheet1!$B53,'Raw Data'!$C:$C)))}
in two separate rows.
I want these two together and use MIN if it says start on the column next to it and use the MAX one if it says stop.
Hope someone is able to help me! Thank you!
Im having issues with a formula. I want it to be a nested if statement, so that if it says "start" then use the min formula and if it says "Stop" use max. I also want it in array format, and it was working when I had them separated (using min for start and max for stop in different formulas) but I want it all together.
This is what I have right now and I know doesn't work:
=IF(G2="Start",MIN(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=$B2,'Raw Data'!$C:$C))),IF(G2="Stop",MAX(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=Sheet1!$B107,'Raw Data'!$H:$H)))))
This worked before:
{=MAX(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=Sheet1!$B107,'Raw Data'!$H:$H)))}
and
{=MIN(IF('Raw Data'!$B:$B=Sheet1!H$1,IF('Raw Data'!$A:$A=Sheet1!$B53,'Raw Data'!$C:$C)))}
in two separate rows.
I want these two together and use MIN if it says start on the column next to it and use the MAX one if it says stop.
Hope someone is able to help me! Thank you!