Hi
I need to sum alternate cells. So in the attachment which is part of the data i need the total pallets in one cell and the total cartons.
rec.xlsx
Thanks
Hi
I need to sum alternate cells. So in the attachment which is part of the data i need the total pallets in one cell and the total cartons.
rec.xlsx
Thanks
This will do the calc for you...
=SUMIF($B$7:$Q$7,"Pallets",$B8:$Q8)
but 1st, remove the trailing space in "Pallets " in your headings
Then change "Pallets" in the formula to "Cartons
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Hiii t_man000,
=SUMIF($B$7:$Q$7,"*Pallets*",$B8:$Q8)
=SUMIF($B$7:$Q$7,"*Cartons*",$B8:$Q8)
This will work for you without removing spaces..
Last edited by mangesh.mehendale; 07-24-2015 at 01:39 AM.
Don`t care, take care...
Regards,
Mangesh
Mangesh, I agree with you completely that your formulas will work without the need to remove those extra spaces
However, it would be considered that the data is "dirty" with those extra spaces, and unless you can remember that they are there, they will undoubtedly cause more problems down the road. It is always - ALWAYS - better to try and clean up your data, rather than work around sloppy data input
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks