Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Return values from table

If I a have a set table like this:

Daily Termo Spring
Single 20 30 40
Double 30 40 45
Triple 35 45 55

And I have a set of data which changes daily, I want a formula to return the
number of minutes in the table if the day's job is a Single Room with a Termo
clean i.e. 30 minutes.

Is it possible? Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Return values from table

Paula wrote:
If I a have a set table like this:

Daily Termo Spring
Single 20 30 40
Double 30 40 45
Triple 35 45 55

And I have a set of data which changes daily, I want a formula to return the
number of minutes in the table if the day's job is a Single Room with a Termo
clean i.e. 30 minutes.

Is it possible? Thanks in advance.


VLOOKUP should be expeditious for your example, since there are few
categories to match:

=VLOOKUP (A1:D4, "Single", 3)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Return values from table

=VLOOKUP (A1:D4, "Single", 3)

Think the vlookup should be something like this:
=VLOOKUP("Single",$A$1:$D$4,MATCH("Termo",$A$1:$D$ 1,0),0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Return values from table

Max wrote:
=VLOOKUP (A1:D4, "Single", 3)


Think the vlookup should be something like this:
=VLOOKUP("Single",$A$1:$D$4,MATCH("Termo",$A$1:$D$ 1,0),0)


Oh duh (me). That's what I get for not proofing my posts. Of course I
meant (for a simple VLOOKUP), was:

=VLOOKUP("Single",A1:D4,3,FALSE)

Sorry for the confusion.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Return values from table

An index/match could also be used ..

Assume your posted table is within A1:D4,
data in B2:D4, row headers in A2:A4, col headers in B1:D1

Assume you have the paired inputs in F2:G2 down,
eg in F2: Single, in G2: Termo

then you could place this in H2:
=INDEX($B$2:$D$4,MATCH(F2,$A$2:$A$4,0),MATCH(G2,$B $1:$D$1,0))
to return the intersection data, viz: 30

Copy H2 down to return correspondingly for other paired inputs in F3:G3,
F4:G4, etc
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Paula" wrote:
If I a have a set table like this:

Daily Termo Spring
Single 20 30 40
Double 30 40 45
Triple 35 45 55

And I have a set of data which changes daily, I want a formula to return the
number of minutes in the table if the day's job is a Single Room with a Termo
clean i.e. 30 minutes.

Is it possible? Thanks in advance.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Return values from table

Max wrote:
An index/match could also be used ..

Assume your posted table is within A1:D4,
data in B2:D4, row headers in A2:A4, col headers in B1:D1

Assume you have the paired inputs in F2:G2 down,
eg in F2: Single, in G2: Termo

then you could place this in H2:
=INDEX($B$2:$D$4,MATCH(F2,$A$2:$A$4,0),MATCH(G2,$B $1:$D$1,0))
to return the intersection data, viz: 30

Copy H2 down to return correspondingly for other paired inputs in F3:G3,
F4:G4, etc


Definitely. A very nice scalable alternative.

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
return values in the table with multiple conditions cprao Excel Worksheet Functions 3 August 7th 08 04:18 PM
how do I return a value between two other values from a table P Forbes Excel Worksheet Functions 7 June 17th 08 07:04 PM
Exclude #N/A values and Return Numeric values to consecutive cells in Single Row Sam via OfficeKB.com Excel Worksheet Functions 5 February 9th 08 03:07 AM
Pivot Table (vlookup 2 column text values, return 1 value) Al Excel Discussion (Misc queries) 1 November 30th 05 01:15 AM
Search multiple values to return single values JANA Excel Worksheet Functions 8 October 27th 05 04:26 PM


All times are GMT +1. The time now is 02:27 AM.

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"