Good day folks,
Please help in my query if you can. Thanks!
Essentially, I am transcribing historic trade merchandise and goods from ships inventories. The commodity I am researching is the button. The inventories mainly list button quantities in pairs (N=2), dozen (N=12), gross (N=144), great gross (N=1728), or double gross (N=1728).
I key in select terms from the inventories into a cell (P162), beginning with the quantity (#) and type of quantity ("Gro"). These two data entries are then followed by numerous other associated button data.
I am using a combination of formulas to to extract the quantity and type of quantity. The current formula in R162 is:
=IF(ISBLANK(P162),"",LEFT(P162,SEARCH("Gro",P162,1)-1))
This searches P162, which says "1 Gro Coat Buttons". The formula then returns "1" in R162.
This works fine for the quantity type Gross (abbreviated "Gro"), yet it requires me to change the formula in the R column for an other quantity type. Ex. =IF(ISBLANK(P986),"",LEFT(P986,SEARCH("Doz",P986,1)-1)).
So, is there a formula that is able to search multiple SEARCH criteria using a LEFT formula? i.e. "Pr", "Doz", "Gro", "Gt Gs", "Dbl G". Please let me know if you require any clarification. Thank you for your time.
GoodWood
Please help in my query if you can. Thanks!
Essentially, I am transcribing historic trade merchandise and goods from ships inventories. The commodity I am researching is the button. The inventories mainly list button quantities in pairs (N=2), dozen (N=12), gross (N=144), great gross (N=1728), or double gross (N=1728).
I key in select terms from the inventories into a cell (P162), beginning with the quantity (#) and type of quantity ("Gro"). These two data entries are then followed by numerous other associated button data.
I am using a combination of formulas to to extract the quantity and type of quantity. The current formula in R162 is:
=IF(ISBLANK(P162),"",LEFT(P162,SEARCH("Gro",P162,1)-1))
This searches P162, which says "1 Gro Coat Buttons". The formula then returns "1" in R162.
This works fine for the quantity type Gross (abbreviated "Gro"), yet it requires me to change the formula in the R column for an other quantity type. Ex. =IF(ISBLANK(P986),"",LEFT(P986,SEARCH("Doz",P986,1)-1)).
So, is there a formula that is able to search multiple SEARCH criteria using a LEFT formula? i.e. "Pr", "Doz", "Gro", "Gt Gs", "Dbl G". Please let me know if you require any clarification. Thank you for your time.
GoodWood