MarleneVorster
New Member
- Joined
- Aug 19, 2018
- Messages
- 3
I need to test a postal code in one sheet to a range of codes in another sheet and return the data in a specified cell.
EG: Client's postal code is 0001, test against the Postal Code ranges in col A and return the relevant Province in col B.
<colgroup><col style="mso-width-source:userset;mso-width-alt:3437;width:71pt" width="94"> <col style="mso-width-source:userset;mso-width-alt:8777;width:180pt" width="240"> </colgroup><tbody>
[TD="class: xl67, width: 94"]Postal codes[/TD]
[TD="class: xl67, width: 240"]Province[/TD]
[TD="class: xl65, width: 94"]0001–0299[/TD]
[TD="class: xl65, width: 240"]Gauteng[/TD]
[TD="class: xl65, width: 94"]0300–0499[/TD]
[TD="class: xl66"]North West[/TD]
[TD="class: xl65, width: 94"]0500–0698[/TD]
[TD="class: xl66"]Limpopo[/TD]
[TD="class: xl65, width: 94"]0699–0999[/TD]
[TD="class: xl66"]Limpopo[/TD]
[TD="class: xl65, width: 94"]1000–1399[/TD]
[TD="class: xl66"]Mpumalanga[/TD]
[TD="class: xl65, width: 94"]1400–1699[/TD]
[TD="class: xl65, width: 240"]Gauteng
[/TD]
</tbody>
I have tried If And functions without success. Any suggestions please.
EG: Client's postal code is 0001, test against the Postal Code ranges in col A and return the relevant Province in col B.
<colgroup><col style="mso-width-source:userset;mso-width-alt:3437;width:71pt" width="94"> <col style="mso-width-source:userset;mso-width-alt:8777;width:180pt" width="240"> </colgroup><tbody>
[TD="class: xl67, width: 94"]Postal codes[/TD]
[TD="class: xl67, width: 240"]Province[/TD]
[TD="class: xl65, width: 94"]0001–0299[/TD]
[TD="class: xl65, width: 240"]Gauteng[/TD]
[TD="class: xl65, width: 94"]0300–0499[/TD]
[TD="class: xl66"]North West[/TD]
[TD="class: xl65, width: 94"]0500–0698[/TD]
[TD="class: xl66"]Limpopo[/TD]
[TD="class: xl65, width: 94"]0699–0999[/TD]
[TD="class: xl66"]Limpopo[/TD]
[TD="class: xl65, width: 94"]1000–1399[/TD]
[TD="class: xl66"]Mpumalanga[/TD]
[TD="class: xl65, width: 94"]1400–1699[/TD]
[TD="class: xl65, width: 240"]Gauteng
[/TD]
</tbody>
I have tried If And functions without success. Any suggestions please.