G gauravkrgautam Member Sep 19, 2014 #1 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, Attachments Excel Average Question..xlsx Excel Average Question..xlsx 8.9 KB · Views: 5
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,
Mike H.. Active Member Sep 19, 2014 #2 gauravkrgautam said: 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, Click to expand... 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 Excel Average Question..xlsx Excel Average Question..xlsx 10.1 KB · Views: 3
gauravkrgautam said: 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, Click to expand... 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),""))))
G gauravkrgautam Member Sep 19, 2014 #3 thanks for your effort bt answer are not matching PFA Attachments Excel Average Question A2C.xlsx Excel Average Question A2C.xlsx 10.3 KB · Views: 4
Mike H.. Active Member Sep 19, 2014 #4 gauravkrgautam said: thanks for your effort bt answer are not matching PFA Click to expand... 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 Excel Average Question A2C.xlsx Excel Average Question A2C.xlsx 10.4 KB · Views: 5
gauravkrgautam said: thanks for your effort bt answer are not matching PFA Click to expand... 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),""))))
G gauravkrgautam Member Sep 22, 2014 #5 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
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