vlookup sum()?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Could anyone help?

I have a data such as:

2007M01 2007M02 2007M03

XXXX 4 8 7

And I would like to vlookup the value for XXXX, but as a combined quater
data: meaning sum(MO1,M02,M03).
Could someone, help me?

Thank you in advance!
 
Hi Claudia

Provided you enter your XXXX as a Text value, e.g. '2007
then
=SUMPRODUCT((LEFT(B$1:N$1,4)=A2)*(RIGHT(B$1:N$1,2)>="01")*
(RIGHT(B$1:N$1,2)<="03")*$B2:$N2)
 
Thank you everyone!

Roger Govier said:
Hi Claudia

Provided you enter your XXXX as a Text value, e.g. '2007
then
=SUMPRODUCT((LEFT(B$1:N$1,4)=A2)*(RIGHT(B$1:N$1,2)>="01")*
(RIGHT(B$1:N$1,2)<="03")*$B2:$N2)
 

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

Back
Top