tlambert
New Member
- Joined
- Jul 19, 2010
- Messages
- 10
I am using the SUMIF function to total up some vehcile types SUMIF(vehicletypes,A1,Range).
The criteria in A1 is text. I have six different vehicle types that I sum up. The formula works with four of the vehicle types just fine but with two of them it returns the "wrong data type" error.
the six vehicle types are: Minivan, Minibus, Transit Bus, Wheelchair Van, ADA Minibus, and ADA Bus. The error is returned whenever I use Transit Bus and ADA Minibus.
I can do a work around and simply change the name but I want to understand and fix the problem. Does anyone have any thoughts?
<table width="146" border="0" cellpadding="0" cellspacing="0"><col style="width: 110pt;" width="146"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; width: 110pt;" width="146" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td></tr><tr style="height: 12.75pt;" height="17"><td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> </tbody></table>
The criteria in A1 is text. I have six different vehicle types that I sum up. The formula works with four of the vehicle types just fine but with two of them it returns the "wrong data type" error.
the six vehicle types are: Minivan, Minibus, Transit Bus, Wheelchair Van, ADA Minibus, and ADA Bus. The error is returned whenever I use Transit Bus and ADA Minibus.
I can do a work around and simply change the name but I want to understand and fix the problem. Does anyone have any thoughts?
<table width="146" border="0" cellpadding="0" cellspacing="0"><col style="width: 110pt;" width="146"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt; width: 110pt;" width="146" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl65" style="height: 12.75pt;" height="17">
</td></tr><tr style="height: 12.75pt;" height="17"><td class="xl65" style="height: 12.75pt;" height="17">
</td> </tr> </tbody></table>