sjoerdbosch
New Member
- Joined
- Mar 27, 2023
- Messages
- 18
- Office Version
- 365
- Platform
- Windows
I am looking for a macro or formula what can identify a cell what contains combination of numbers and letters into a word
The combination of letters and numbers is on another sheet than the destination word.
The sheet with the combination is in sheet what is called "Ullage Report" and this is sheet 16 in VBA and the target sheet is "STOWAGE" which is sheet 20 in VBA
The source cells in Ullage - [AF34] - can contain a number - or a number + Letter
If only a number - I want to display in the target cell [STOWAGE N2] the word Annex II and if number(s) + letter it must be Annex I
Had the formula below in the cell in the stowage sheet, and which only works if AF34 is more than 0 but it does not work if the cell contains e.g. 54B
Should that be the case it should display Annex I
=IF('Ullage Report'!P35="","",IF('Ullage Report'!AF34>0,"Annex II","Annex I"))
Also if the cell Ullage Report'!P35="","", [should display nothing]
The combination of letters and numbers is on another sheet than the destination word.
The sheet with the combination is in sheet what is called "Ullage Report" and this is sheet 16 in VBA and the target sheet is "STOWAGE" which is sheet 20 in VBA
The source cells in Ullage - [AF34] - can contain a number - or a number + Letter
If only a number - I want to display in the target cell [STOWAGE N2] the word Annex II and if number(s) + letter it must be Annex I
Had the formula below in the cell in the stowage sheet, and which only works if AF34 is more than 0 but it does not work if the cell contains e.g. 54B
Should that be the case it should display Annex I
=IF('Ullage Report'!P35="","",IF('Ullage Report'!AF34>0,"Annex II","Annex I"))
Also if the cell Ullage Report'!P35="","", [should display nothing]