VLOOKUP - calculating multiple hits

C

carol

Hi,

I need to calculate multiple Vlookup data hits.

In my spreadsheet, I need to search for 'UK' in one column, and return the
corresponding values of another column, but calculate the total of these
values if there is more than one 'UK' hit.

Any ideas???
 
P

Pranav Vaidya

Hi Carol

Please tryt he below

=IF(COUNTIF(E2:E10,"UK")>1,SUMIF(E2:E10,"UK",F2:F10),VLOOKUP("UK",E2:F10,2,FALSE))

I assume that UK is listed in col E and corresponding data is in col F

HTH,
 

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

Top