You assume company is unique? I am not sure about that, if that's not the case you can try something like this, while $company is the company name
$customers$customerAddresses = Mage::getModel('customer/customer'address')->getCollection();
$customers$customerAddresses->addFieldToFilter>addAttributeToSelect('company');
$customerAddresses->addAttributeToFilter('company', array('like' => '%' . $company . '%'));
foreach ($customers$customerAddresses as $customer$customerAddress){
print_r($customer$customerAddress->getId>getCustomerId());
}
You can change the like
statement for an equal if you are sure $company contains the exact value
$customers$customerAddresses->addFieldToFilter>addAttributeToFilter('company', array('eq' => $company));
UPDATE
My mistake, as company
is a customer address attribute, not a direct customer attribute. Check above updated code, you'd consider sometimes customer_id
could be null, if address is not associated to any customer