#1
|
|||
|
|||
If formula
Hi,
I will like to write a formula to return a certain value in excel. Basically, say if C4 cell contains x,y, or z then I want D4 to find the last cell (in colum C) with x, y or z and return a value equal the corresponding D value +1 Any help at all will be appreciated. I can give more explanation if this isn't clear. Thanks |
#2
|
||||
|
||||
Supposing your range is C4:d14 try =INDEX(D4:d14,(MAX((C4:C14=$C$4)*ROW(4:14))-ROW(4:14)+1))
This is an array formula that should be committed with Ctrl+Shift+Enter
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
Try this (change the ranges to suit your sheet). Of course, the brackets indicate that this is an array formula so when you enter it you need to press CNTL-SHIFT-ENTER.
{=LOOKUP(2,1/(C6:C15=C4),D6:d15)+1} |
#4
|
|||
|
|||
@gebobs
Not a big deal but I don't think array entering is required. |
#5
|
|||
|
|||
Right you are!
|
#6
|
|||
|
|||
Thanks for getting back to me, it doesn't exactly give me what I want.
I more or less need a formula to continue a numbering sequence based on the value in the adjacent cell. If column C has values x, y or z and D contain numbering sequence based on what is in C so say C10= x then D10 checks for the last C cell with x value (before C10) and returns the number in the D cell +1 |
#7
|
|||
|
|||
Is it something like the attached?
|
#8
|
|||
|
|||
Thanks, yes something like that. Thanks for your help
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula | innkeeper9 | Excel | 2 | 09-13-2016 08:59 PM |
Formula Help | yljayhawk | Excel | 5 | 07-11-2016 06:14 AM |
Need help with dragging a formula and changing a reference column as I drag the formula. | LupeB | Excel | 1 | 10-22-2015 03:02 PM |
IF + AND formula help | david_89_ | Excel | 4 | 06-11-2014 11:07 AM |
Need help with formula | zachluke | Excel | 3 | 03-13-2014 11:15 AM |