Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup and calculations

hello everybody. I have a question: is it possible to have excel to look up
more cells (i.e. =vlookup(sheet1!$A$1and$C$1,sheet2!$A$1:$C$3) and if both
values are equal then multiply what's in cell sheet2! by another cell in
sheet1!?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default vlookup and calculations

You can use MATCH and INDEX in that way

=INDEX(Sheet2!$D$1:$D$20,MATCH(Sheet1!$A$1&Sheet1! $C$1,Sheet2!$A$1:$A$20&She
et2!$C$1:$C$20,0))

which is an array formula so commit with Ctrl-Shift-Enter.

The MATCH uses the concatenated values to lookup into tow concatentaed
ranges, which returns ajn index in the range(s). This is passed to INDEX to
get the actual corresponding value in Column D.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
hello everybody. I have a question: is it possible to have excel to look

up
more cells (i.e. =vlookup(sheet1!$A$1and$C$1,sheet2!$A$1:$C$3) and if both
values are equal then multiply what's in cell sheet2! by another cell in
sheet1!?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup and calculations

Hello Bob, thanks for the prompt reply... and what about the calculation? is
it possible?
"Bob Phillips" wrote in message
...
You can use MATCH and INDEX in that way

=INDEX(Sheet2!$D$1:$D$20,MATCH(Sheet1!$A$1&Sheet1! $C$1,Sheet2!$A$1:$A$20&She
et2!$C$1:$C$20,0))

which is an array formula so commit with Ctrl-Shift-Enter.

The MATCH uses the concatenated values to lookup into tow concatentaed
ranges, which returns ajn index in the range(s). This is passed to INDEX
to
get the actual corresponding value in Column D.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
hello everybody. I have a question: is it possible to have excel to look

up
more cells (i.e. =vlookup(sheet1!$A$1and$C$1,sheet2!$A$1:$C$3) and if
both
values are equal then multiply what's in cell sheet2! by another cell in
sheet1!?






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default vlookup and calculations

Antonov,

That gets the value so just add *other_cell_ref on the end.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
Hello Bob, thanks for the prompt reply... and what about the calculation?

is
it possible?
"Bob Phillips" wrote in message
...
You can use MATCH and INDEX in that way


=INDEX(Sheet2!$D$1:$D$20,MATCH(Sheet1!$A$1&Sheet1! $C$1,Sheet2!$A$1:$A$20&She
et2!$C$1:$C$20,0))

which is an array formula so commit with Ctrl-Shift-Enter.

The MATCH uses the concatenated values to lookup into tow concatentaed
ranges, which returns ajn index in the range(s). This is passed to INDEX
to
get the actual corresponding value in Column D.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
hello everybody. I have a question: is it possible to have excel to

look
up
more cells (i.e. =vlookup(sheet1!$A$1and$C$1,sheet2!$A$1:$C$3) and if
both
values are equal then multiply what's in cell sheet2! by another cell

in
sheet1!?








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup and calculations

Thanks Bob... I will try it tomorrow at the office... will let you know....

"Bob Phillips" wrote in message
...
Antonov,

That gets the value so just add *other_cell_ref on the end.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
Hello Bob, thanks for the prompt reply... and what about the calculation?

is
it possible?
"Bob Phillips" wrote in message
...
You can use MATCH and INDEX in that way


=INDEX(Sheet2!$D$1:$D$20,MATCH(Sheet1!$A$1&Sheet1! $C$1,Sheet2!$A$1:$A$20&She
et2!$C$1:$C$20,0))

which is an array formula so commit with Ctrl-Shift-Enter.

The MATCH uses the concatenated values to lookup into tow concatentaed
ranges, which returns ajn index in the range(s). This is passed to
INDEX
to
get the actual corresponding value in Column D.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
hello everybody. I have a question: is it possible to have excel to

look
up
more cells (i.e. =vlookup(sheet1!$A$1and$C$1,sheet2!$A$1:$C$3) and if
both
values are equal then multiply what's in cell sheet2! by another cell

in
sheet1!?












  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup and calculations

Bob.... ehmmm... I think I am doing something wrong....as all I get if I
apply the formula is "#N/A"... The formula has to go in cell J7. The match
has to be between A1&I1 and sheet2!A1:A4&B1:B4. Now: the table in Sheet2 is
as follows:
(A1) CI (B1) VE (C1) 0.004
(A2) CI (B2) MI (C2) 0.003
so... say the result of the match is CI VE then I need the data in cell
Sheet1!G1 to be multiplied by Sheet2!C1.... do you think it is possible?
thanks again for your patience


"antonov" wrote in message
...
Thanks Bob... I will try it tomorrow at the office... will let you
know....

"Bob Phillips" wrote in message
...
Antonov,

That gets the value so just add *other_cell_ref on the end.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
Hello Bob, thanks for the prompt reply... and what about the
calculation?

is
it possible?
"Bob Phillips" wrote in message
...
You can use MATCH and INDEX in that way


=INDEX(Sheet2!$D$1:$D$20,MATCH(Sheet1!$A$1&Sheet1! $C$1,Sheet2!$A$1:$A$20&She
et2!$C$1:$C$20,0))

which is an array formula so commit with Ctrl-Shift-Enter.

The MATCH uses the concatenated values to lookup into tow concatentaed
ranges, which returns ajn index in the range(s). This is passed to
INDEX
to
get the actual corresponding value in Column D.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"antonov" wrote in message
...
hello everybody. I have a question: is it possible to have excel to

look
up
more cells (i.e. =vlookup(sheet1!$A$1and$C$1,sheet2!$A$1:$C$3) and if
both
values are equal then multiply what's in cell sheet2! by another cell

in
sheet1!?












Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup Calculations RoadKill Excel Worksheet Functions 4 February 26th 08 10:02 PM
Vlookup Calculations RBG Excel Worksheet Functions 3 November 12th 07 03:18 PM
N/A results on vlookup with time calculations Freida Excel Worksheet Functions 4 October 22nd 07 06:09 PM
! in Calculations Strata Excel Discussion (Misc queries) 4 December 14th 05 01:15 PM
Calculations Andrew Hodgson Excel Worksheet Functions 0 August 2nd 05 03:58 PM


All times are GMT +1. The time now is 02:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"