LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Lookup data in 2 columns

You are very welcome, Sweepea, thank you for your feedback.

One additional consideration. As Dave notes, this currently assumes the
criteria are met. If the value in column C for a valid combination like Apple
and Fuji could be 0, there would be no distinction between not finding the
combination (e.g. through inaccurate search critera or data) and finding it,
both giving 0 in that particular case. The expression can be extended to
cover this by verifying the existence of the search criteria in the data.

Anthony

"Sweepea" wrote:

Thank you, Anthony. The formula is easy and it really helps.

But I will try Dave's method as well.

Thanks everyone for your help .... most sincerely appreciated.


"Anthony D" wrote:

Hi,

A possibility using sumproduct:

=SUMPRODUCT(--(A1:A1="Apple"),--(B1:B1="Fuji"),C1:C1)

The range can be extended e.g. A1:A100, B1:B100, C1:C100 etc.

Hth
Anthony

"Sweepea" wrote:

Example:

C1 C2 C3
R1 Apple Fuji 10

I want to create a lookup that will return the value 10 if C1=Apple AND
C2=Fuji.
Can someone help? Thank you.

 
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
sorting 2 colums of numbers and incremening them down blk&wht Excel Discussion (Misc queries) 10 October 9th 06 10:12 PM
summing columns if there is data Dave Excel Worksheet Functions 2 June 22nd 06 08:04 PM
Data in narrow columns truncated when saving as DBF Ben Amada Excel Discussion (Misc queries) 2 October 11th 05 11:23 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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