VLOOKUP or IF Function?

  • Thread starter Thread starter carol
  • Start date Start date
C

carol

Is it possible to use the VLOOKUP or IF function to firstly, search a column
for a particular word, then return the corresponding values from another
column and calculate multiple values if more than one word hit is found?
 
Carol,

A bit short on info but this looks in column A for the valkue in C1 and
then sums any corresponding values in column B.

=SUMIF(A:A,C1,B:B)

Mike
 
Hi Carol,

Not sure how is your data looking like, but you can use combination of IF,
VLOOKUP, and COUNT

HTH,
 
Try sumproduct ..

Eg: =SUMPRODUCT((A2:A100="hit")*B2:B100)
will return the sum of numbers in col B where col A contain the key text: hit

And if the key text: hit
could be part of a text string, eg: hit man, double hit, etc
you could use instead:
=SUMPRODUCT(ISNUMBER(SEARCH("hit",A2:A100))*B2:B100)
 
VLOOKUP is excellent for retrieving a single value, if one occurrence
of lookup value is expected. If you expect several occurrences and
want a sum of the results you will probably need SUMIF:

=SUMIF(B2:B100,"AJ-123",D2:D100)

This formula will search column B:B for occurrences of "AJ-123" and
sum corresponding entries in D:D.

HTH
Kostis Vezerides
 

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

VLOOKUP - calculating multiple hits 2
Vlookup problem 1
REVERSE VLOOKUP 3
vlookup 3
Looking for Formula 1
Vlookup - returning multiple vertical values 4
VLOOKUP problem 3
Vlookup 6

Back
Top