Hi,
I'd like to find the lowest price on all last Green cells
When it is Red, stop calculating.
In the file attached, the formula should give the price : 200
Thank you
Hi,
I'd like to find the lowest price on all last Green cells
When it is Red, stop calculating.
In the file attached, the formula should give the price : 200
Thank you
Enter this formula into any cell using Ctrl Shift Enter.
=MIN(IF(INDIRECT("A" & MATCH("Red",A1:A6,0) & ":A6")="Green",INDIRECT("B" & MATCH("Red",A1:A6,0) & ":B6"),9^99))
Last edited by mehmetcik; 01-17-2019 at 09:30 AM.
My General Rules if you want my help. Not aimed at any person in particular:
1. Please Make Requests not demands, none of us get paid here.
2. Check back on your post regularly. I will not return to a post after 4 days.
If it is not important to you then it definitely is not important to me.
=MIN(INDEX(B:B,AGGREGATE(14,6,ROW(A2:A600)/(A2:A600<>"Green")/NOT(ISBLANK(A2:A600)),1)+1):A600)
Thank you for your reply.
It returns #VALUE! (on the A2:A6="Green")
Enter this formula into any cell using Ctrl Shift Enter.
Press and hold ctrl, press and hold shift, press enter.
=MIN(IF(INDIRECT("A" & MATCH("Red",A1:A6,0) & ":A6")="Green",INDIRECT("B" & MATCH("Red",A1:A6,0) & ":B6"),9^99))
Yes.
you did not use ctrl Shift Enter
I tried it with different values, when you change A5 into Red, the formula calculates wrong.
Attached.
Thanks
Please try
=MIN(INDEX(B:B,MATCH(2,INDEX(1/(A1:A999<>"Green")/(A1:A999<>""),))+1):B999)
Doesn't work when the last cell is Red
Please try with Ctrl+Shift+Enter
Formula:Please Login or Register to view this content.
Looks good. that's a long, complicated and impressive formula.
Thanks!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks