Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Match, VLookup possible formula needed

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Match, VLookup possible formula needed

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Match, VLookup possible formula needed

worked perfectly thank you, i should have thought of this before as i used
the formula before a while back
Thanks again
--
Thanks for the help in advance


"John C" wrote:

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Match, VLookup possible formula needed

Not a problem, thanks for the feedback :)
--
John C


"Roibn Taylor" wrote:

worked perfectly thank you, i should have thought of this before as i used
the formula before a while back
Thanks again
--
Thanks for the help in advance


"John C" wrote:

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Match, VLookup possible formula needed

How would you alter this formula if the data in columns A and B were text
rather than numbers? For example, if the data looked like this:

Lab Dept FTE
A Sales 3.04
A Payroll 5.63

I think I need a VLOOKUP but can't figure out how to make it work.

"John C" wrote:

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Match, VLookup possible formula needed

Try it.

CParker wrote:

How would you alter this formula if the data in columns A and B were text
rather than numbers? For example, if the data looked like this:

Lab Dept FTE
A Sales 3.04
A Payroll 5.63

I think I need a VLOOKUP but can't figure out how to make it work.

"John C" wrote:

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Match, VLookup possible formula needed

As a follow-up, assume Sheet1 was set up like this:

A B C D
Product Dept 1 Dept 2 Dept 3
Hammer
Broom

I wanted to have a formula in B2 that would go to another worksheet (Sheet2)
and retrieve the number of Hammers in Dept 1. Assume that Sheet2 was
organized as follows:

A B C
Dept 1 Hammer 5
Dept 1 Broom 2
Dept 2 Hammer 8

Here is the formula I found to work to retrieve a value of 5 in cell B2 of
Sheet1:

=IF(ISNA(INDEX('Sheet2!$C:$C,MATCH(1,($A2='Sheet2' !$B$1:$B$2500)*(B$1='Sheet2'!$A$1:$A$2500),0))),0, INDEX('Sheet2'!$C:$C,MATCH(1,($A2='Sheet2'!$B$1:$B $2500)*(B$1='Sheet2!$A$1:$A$2500),0)))

After typing in the formula, you need to press Ctrl+Shift+Enter for it to
work. Hope that helps anyone in my same situation.

"CParker" wrote:

How would you alter this formula if the data in columns A and B were text
rather than numbers? For example, if the data looked like this:

Lab Dept FTE
A Sales 3.04
A Payroll 5.63

I think I need a VLOOKUP but can't figure out how to make it work.

"John C" wrote:

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Match, VLookup possible formula needed

Try it like this:

Entered in B2:

=SUMPRODUCT(--(Sheet2!$A$1:$A$3=B$1),--(Sheet2!$B$1:$B$3=$A2),Sheet2!$C$1:$C$3)

Copy across then down as needed.

--
Biff
Microsoft Excel MVP


"CParker" wrote in message
...
As a follow-up, assume Sheet1 was set up like this:

A B C D
Product Dept 1 Dept 2 Dept 3
Hammer
Broom

I wanted to have a formula in B2 that would go to another worksheet
(Sheet2)
and retrieve the number of Hammers in Dept 1. Assume that Sheet2 was
organized as follows:

A B C
Dept 1 Hammer 5
Dept 1 Broom 2
Dept 2 Hammer 8

Here is the formula I found to work to retrieve a value of 5 in cell B2 of
Sheet1:

=IF(ISNA(INDEX('Sheet2!$C:$C,MATCH(1,($A2='Sheet2' !$B$1:$B$2500)*(B$1='Sheet2'!$A$1:$A$2500),0))),0, INDEX('Sheet2'!$C:$C,MATCH(1,($A2='Sheet2'!$B$1:$B $2500)*(B$1='Sheet2!$A$1:$A$2500),0)))

After typing in the formula, you need to press Ctrl+Shift+Enter for it to
work. Hope that helps anyone in my same situation.

"CParker" wrote:

How would you alter this formula if the data in columns A and B were text
rather than numbers? For example, if the data looked like this:

Lab Dept FTE
A Sales 3.04
A Payroll 5.63

I think I need a VLOOKUP but can't figure out how to make it work.

"John C" wrote:

Assuming your main table is in columns A through C.
E2 is the lab lookup, F2 is the dept lookup.
Expand or retract table as necessary.

=SUMPRODUCT(--($A$1:$A$100=E2),--($B$1:$B$100=F2),($C$1:$C$100))

--
John C


"Roibn L Taylor" wrote:

have three columns - data changes, need to find matching data if two
of the
match the criteria

Data and Rows changes Find matching FTE data
if no match enter a zero
Lab & Dept stay constant
Lab Dept FTE Lab Dept FTE Answers
14 10 3.04 16 10 Need 5.45
14 15 5.63 16 15 formula 0
14 40 3.39 16 30 11.3
14 100 0.19 16 40 0
14 260 6.61 16 50 5.61
16 10 5.45
16 30 11.3
16 50 5.61

Is this possible?



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 FORMULA EVALUATION NEEDED SSJ New Users to Excel 3 March 29th 08 04:15 PM
Complicated lookup/match formula help needed! Jason[_11_] Excel Worksheet Functions 2 March 21st 08 12:39 AM
Formula help needed! lookup/match unsure which bbrant2 Excel Worksheet Functions 0 November 19th 07 09:31 PM
VLOOKUP formula needed olrustyxlsuser Excel Discussion (Misc queries) 3 June 20th 07 10:18 PM
Vlookup formula needed? Kent Excel Worksheet Functions 1 February 21st 07 08:50 PM


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