Pretty Simple i hope.
Heres a picture that should shed more light
lookup example.jpg
So i want to return the value in G7. It is the count of the range from E7:F7
is vlookup what im after?
Thanks
I think you want =(MATCH(F7,J:J,0)-MATCH(E7,J:J,0))+1
As an aside, please post example workbooks, not jpeg images - nobody wants to have to retype your data to test their formula.
Last edited by Andrew-R; 02-03-2012 at 06:12 AM. Reason: Plus, not minus!
Hi
Would you like to test this??
=(F7-E7)*2+1
Hope to helps you.
Regards
Fotis.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
Thanks,
Sorry it wasn't working before (the up-loader)
Heres the sheet its slightly different from the jpeg and has increments.
Thanks
Still struggling with this formula
Should this be done in VBA then?
I'm puzzled as to why my original formula didn't work. It seems that adding 0.1 to the previous value returns a number which isn't exactly equal to x+0.1
This formula does work:
=(MATCH(F3,ROUND($J$1:$J$100,1),0)-MATCH(E3,ROUND($J$1:$J$100,1),0))+1
However, this is an array formula, so it must be entered using Ctrl-Shift-Enter, not just enter.
This Works thanks a lot.
I may encounter a problem like so (attached) in the future and it would be great if i could work around it but for now this is great.
The problem in "example 5" is that currently it does not round up.
lookupsteps2.xlsx
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks