Even if the card is not detected, because the filesystem is corrupt or something similar, you can format it with the sdformatter.
I had a microsdhc, 4GB, which I formatted in a phone which only could handle 2GB, and it created a hidden partition of 2GB on the card, which I could not see or format with windows.
I then used sdformatter, and it recovered the full capacity of the card.