Re: can vlookup look up the result of a function?
- From: "Ragdyer" <RagDyer@xxxxxxxxxxxxx>
- Date: Sat, 2 Sep 2006 18:18:40 -0700
Do I understand your problem?
J3 contains your original exchange rate.
U3 to U64 contains daily exchange rates.
V3 to V64 contains the date these rates are available.
You want to know the date that the original exchange rate (in J3) reaches a
value 0.1 higher.
Try this in a cell that's formatted to a date, so that you don't return the
date serial number:
=INDEX(V3:V64,MATCH(ROUND(J3+0.1,4),U3:U64,0))
This formula is *not* an array formula, just a regular <Enter> will suffice.
NOW, you could also reference a cell in your formula which contains the
*rate increase* your looking to find.
That way you could play "what if", to see what dates the rate increased by
varying amounts.
Say J4 contained the amount of increase you're looking for.
Simply revise your formula to this:
=INDEX(V3:V64,MATCH(ROUND(J3+J4,4),U3:U64,0))
Now, is there anything that I perhaps misunderstood about your question?
--
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"fryguy" <fryguy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D3CBE4FD-3810-44C7-B318-66E3CD2492C1@xxxxxxxxxxxxxxxx
Yes RagDyer the horse is dead. I am obviously not the excel genius youare
and didn't think of the match thing. I have learned everything I know byI
reading the help file and have created some pretty "*hot*" spreadsheets.
am not that great with array formula's either but managed to modify JMB'sto
formula to my spreadsheet and make it work. If your the genius you seem
thing you are then modify this to return a date the rate is availableafter
the first time it appears.ctrl+shift+enter
INDEX($V$3:$V$64,MATCH(FALSE,$U$3:$U$64<(J3+0.1),0)) <-
returns
Say... jan 15 my fx rate is 1.3456 and feb 23 the rate hits 1.4457. this
will be the date I need, but jan 2 the rate was 1.4456. The formula
jan 2 shich would no longer be an option.limiting
thanx and remeber the horse is dead an no longer able to listen.
fryguy
"RagDyer" wrote:
Not to kick a dead horse, but all that Pete's formula is doing is
inthe calculation cell to 4 decimal places to match the 4 decimal places
outyour lookup list!
Do you mean to tell me that when you manually entered test data to check
matchthe veracity of your original formula, you *didn't* think to exactly
-*both* numbers out to 4 places?
Don't you think that would be elementary in any testing ... !
--
Regards,
RD
--------------------------------------------------------------------------
!Please keep all correspondence within the NewsGroup, so all may benefit
-
--------------------------------------------------------------------------
in"fryguy" <fryguy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DD09C6F3-3AFE-49AF-BCB6-950BDE2F73EF@xxxxxxxxxxxxxxxx
See the suggestions by Pete_UK below, it worked. I am manually keying
theall
the figures and I will be when this spreadsheet is finished. None of
to.values have been imported from any other program.
Thanks anyway for your help.
fryguy
"RagDyer" wrote:
The formula in your OP *WILL* work *exactly* as you say you want it
for
The reason *you* can't get it to do so, *is* the main question!
Probably, your data values are *not* as you may think they are.
If these values are being imported, there are numerous possibilities
appearcontamination, so that they are not recognized by XL as they may
you'reto
the eye.
That's the reason I suggested keying in values yourself, so that
--sure
that *both* the lookup values in the datalist and the cells to be
calculated
are exactly the same.
--
Regards,
RD
-------------------------------------------------------------------------
benefit !Please keep all correspondence within the NewsGroup, so all may
--
-------------------------------------------------------------------------
can"fryguy" <fryguy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:47CB1F0C-67A2-47C6-B5EE-5B5ABAF4F076@xxxxxxxxxxxxxxxx
Of course I tried it.
The help file specifically states "Lookup_value... Lookup_value
additionbe a
value or a reference. If loo..." So it can't be the result of
cellor
a
sum function. It doesn't even work if you make a refernece to a
---------------------------------------------------------------------------with
the sum function, that returns the correct value of 1.1735.
Does anyone else have any other ideas!?
"RagDyer" wrote:
Have you tried it before posting here?
Manually key in some test values, and check it out.
It should work fine!
--
Regards,
RD
---------------------------------------------------------------------------Please keep all correspondence within the NewsGroup, so all may
benefit !
a"fryguy" <fryguy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7E74ABE4-3C50-4124-BB46-C946578012F5@xxxxxxxxxxxxxxxx
=vlookup((a1+0.1),$B$1:$C$45,2,FALSE) Can the lookup_value be
itreference
plus an amount? I need to look up a foreign exchange rate when
andreaches
ten points higher. So... 1.0735 is the original exchange rate,
dateI
need
to lookup the same rate when it reaches 1.1735 and return the
date.it
reahces
this rate. It would be a two column lookup_array, rate and
.
- Follow-Ups:
- Re: can vlookup look up the result of a function?
- From: fryguy
- Re: can vlookup look up the result of a function?
- References:
- Re: can vlookup look up the result of a function?
- From: RagDyer
- Re: can vlookup look up the result of a function?
- From: RagDyer
- Re: can vlookup look up the result of a function?
- From: fryguy
- Re: can vlookup look up the result of a function?
- From: RagDyer
- Re: can vlookup look up the result of a function?
- From: fryguy
- Re: can vlookup look up the result of a function?
- Prev by Date: Re: How do I break a large .CSV file into several small Excel file
- Next by Date: Re: how do i sort a set of averages and have them list in descendi
- Previous by thread: Re: can vlookup look up the result of a function?
- Next by thread: Re: can vlookup look up the result of a function?
- Index(es):
Relevant Pages
|