i want function in excel to addition numbers in same cell or any thing by vba. like this table
If you examine the logic used in the example shown the diagram below, you might be able to turn it into a more useful general function:
.