Lookup text

G

gunnar

Hi!
I have two ranges I wanna match. The content of the ranges
are numbers. If match, I wanna pick up the TEXT (AorB)from
the column to right of one of the ranges. I regularly use
SUMIF function, which works fine if the content I wanna
pick up is numbers.
Does anyone know how to solve this problem?
Here is the sumif example: {=SUM(IF(Deliveries!
$H$9:$H$158=$E6;IF(Deliveries!$D$9:$D$158=$G6;Deliveries!
$J$9:$J$158;0);0))}

Help is appreciated.
Gunnar
 
L

Leo Heuser

Hi Gunnar

This array formula:

=INDEX(Deliveries!$J$9:$J$158,MATCH(1,(Deliveries!$H$9:$H$158=$E6)*
(Deliveries!$D$9:$D$158=$G6),0))

Enter with <Shift><Ctrl><Enter> instead of <Enter>

will work for numbers as well as text.

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sum / Lookup 11
closet lookup 2
Inex and Lookup searches 1
SUMIFS formula, reading text 1
VBA Lookup table / Array 4
Sumif across a table 2
Copying Formulas - correctly stated 3
table lookup 8

Top