Using H/VLOOKUP to return multiple values

H

Hennessy

I am trying to use VLOOKUP to return the sum of corresponding columns to the
reference i search for. for example on wksht 2, i want column B to return the
sum of columns B-F on wksht 1 if the cell in column A (wksht1) is X. I
currently have it set up as such, but i have multiple entries on wksht 1
column A that = X. Is there a way to code "retun the sum of columns B-F if
A=X for all values =X in column A?

I concede this probably sounds confusing, but i am not of a wordsmith mind
at the moment.
 
D

Daniel.C

Array formula (validate with Ctrl+Shift+Enter) :
=SUM((Sheet1!A1:A100="x")*Sheet1!B1:F100)
HTH
Daniel
 
L

Luke M

Perhaps the array* formula:
=SUM(IF(A2:A100="X",B2:F100,0))

*Use Ctrl+Shift+Enter to confirm formula.
 

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

Fromatting 2
Multiple results in Vlookup 2
Sorting Problem 2
VLOOKUP 1
Macro to Sum Two Adjacent Columns as per Text in previous Column 8
Matching Values to Enter New Value 2
Vlookup 1
Vlookup with sums 1

Top