• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Calculation for Average with char(160)

Hi,

how should i use average functioin in attached sheet but i dont want it with helping columns.

As it contain char(160) in it .
please help me on this


Regards,
Hi,


Well I'd get rid of all the chr(160) but if you want to do it as is then try this. See attached workbook.



=SUMPRODUCT((TRIM(SUBSTITUTE($B$2:$B$11,CHAR(160),""))*(TRIM(SUBSTITUTE($A$2:$A$11,CHAR(160),""))=TRIM(SUBSTITUTE($G$4,CHAR(160),"")))))/SUMPRODUCT(--(TRIM(SUBSTITUTE($A$2:$A$11,CHAR(160),""))=TRIM(SUBSTITUTE(G4,CHAR(160),""))))
 

Attachments

thanks for your effort bt answer are not matching

PFA
Hi,

My bad, I had an absolute reference to g4 and it should have been relative.

=SUMPRODUCT((TRIM(SUBSTITUTE($B$2:$B$11,CHAR(160),""))*(TRIM(SUBSTITUTE($A$2:$A$11,CHAR(160),""))=TRIM(SUBSTITUTE(G4,CHAR(160),"")))))/SUMPRODUCT(--(TRIM(SUBSTITUTE($A$2:$A$11,CHAR(160),""))=TRIM(SUBSTITUTE(G4,CHAR(160),""))))
 

Attachments

No problem, i should also take care of that little thing.
However i would like to tell you that you have make my work too much easy & quicker.
i will save around 1 hr of a day with this.


Regards,
Gaurav
 
Back
Top