Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Simultaneously use VLOOKUP and HLOOKUP in EXCEL 2003

I am trying to get data from a Sales Forecast into a planning sheet.

Dates are across the horizontal rows and product codes are on the vertical
columns

ie:
Sun Mon Tue Wedn
12-Oct 13-Oct 14-Oct 15-Oct

F13401 170 90 140 220
F13403 34 33 38 37
F13404 32 32 55 31
F13407 360 350 350 510

I want to return the value by looking up the date first and then looking for
the product code and entering the figure... so 13-oct for F13404 = 32.

I have tryed doing an @IF with VLOOKUP and HLOOKUP but it keeps failing.

Many thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Simultaneously use VLOOKUP and HLOOKUP in EXCEL 2003

Hi,

This assumes your table is in a1 - E5 (A1 actually empty)

=SUMPRODUCT((A2:A5=G1)*(B1:E1=G2)*(B2:E5))

Where
G1 is the code you want
G2 is the date you want

Mike

"Nicky" wrote:

I am trying to get data from a Sales Forecast into a planning sheet.

Dates are across the horizontal rows and product codes are on the vertical
columns

ie:
Sun Mon Tue Wedn
12-Oct 13-Oct 14-Oct 15-Oct

F13401 170 90 140 220
F13403 34 33 38 37
F13404 32 32 55 31
F13407 360 350 350 510

I want to return the value by looking up the date first and then looking for
the product code and entering the figure... so 13-oct for F13404 = 32.

I have tryed doing an @IF with VLOOKUP and HLOOKUP but it keeps failing.

Many thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Simultaneously use VLOOKUP and HLOOKUP in EXCEL 2003

Hi Nicky

With your data held in A1:D6, enter the Product code you want in F1 and the
date in G1 and use
=INDEX($A$1:$D$6,MATCH(F1,$A$1:$A$6,0),MATCH(G1,$A $2:$D$2,0))

--
Regards
Roger Govier

"Nicky" wrote in message
...
I am trying to get data from a Sales Forecast into a planning sheet.

Dates are across the horizontal rows and product codes are on the vertical
columns

ie:
Sun Mon Tue Wedn
12-Oct 13-Oct 14-Oct 15-Oct

F13401 170 90 140 220
F13403 34 33 38 37
F13404 32 32 55 31
F13407 360 350 350 510

I want to return the value by looking up the date first and then looking
for
the product code and entering the figure... so 13-oct for F13404 = 32.

I have tryed doing an @IF with VLOOKUP and HLOOKUP but it keeps failing.

Many thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Simultaneously use VLOOKUP and HLOOKUP in EXCEL 2003

Hi Roger.

With a bit of tweeking for my workbook which is spread over several
worksheets it now is working a treat.

Many thanks

"Roger Govier" wrote:

Hi Nicky

With your data held in A1:D6, enter the Product code you want in F1 and the
date in G1 and use
=INDEX($A$1:$D$6,MATCH(F1,$A$1:$A$6,0),MATCH(G1,$A $2:$D$2,0))

--
Regards
Roger Govier

"Nicky" wrote in message
...
I am trying to get data from a Sales Forecast into a planning sheet.

Dates are across the horizontal rows and product codes are on the vertical
columns

ie:
Sun Mon Tue Wedn
12-Oct 13-Oct 14-Oct 15-Oct

F13401 170 90 140 220
F13403 34 33 38 37
F13404 32 32 55 31
F13407 360 350 350 510

I want to return the value by looking up the date first and then looking
for
the product code and entering the figure... so 13-oct for F13404 = 32.

I have tryed doing an @IF with VLOOKUP and HLOOKUP but it keeps failing.

Many thanks



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
Using Vlookup and If functions simultaneously Vlookup and If Excel Worksheet Functions 3 October 6th 08 11:10 PM
Hi.. not sure if need hlookup or vlookup or something else Teneo Excel Discussion (Misc queries) 2 March 28th 08 01:30 PM
Running Two Instance of Excel 2003 Simultaneously - Advice Please Dermot Excel Discussion (Misc queries) 11 February 20th 08 12:04 AM
please tell me how to use vlookup and hlookup in excel rhitu New Users to Excel 1 June 1st 06 12:32 PM
vlookup and hlookup simultaneously Kanagabalan Excel Worksheet Functions 2 June 1st 06 05:47 AM


All times are GMT +1. The time now is 06:57 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"