ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel VB Question (https://www.excelbanter.com/excel-discussion-misc-queries/160120-excel-vbulletin-question.html)

[email protected]

Excel VB Question
 
We are looking to make a VB that will look in one column, and based
upon text found, place a set word in another column.

For example, column B will contain the text "ABC-123 Sheeting - 25ft"
and we need it to place "Docks" in column C. If column B contains
"ADC-234 Decking - 5ft" we need column C to autofill with "Decks".

There would be 3-4 other rules. How would we go about doing this?


Mike

Excel VB Question
 
=IF(B1="ABC-123 Sheeting - 25ft","Docks",IF(B1="ADC-234 Decking -
5ft","Decks","Unknown"))

" wrote:

We are looking to make a VB that will look in one column, and based
upon text found, place a set word in another column.

For example, column B will contain the text "ABC-123 Sheeting - 25ft"
and we need it to place "Docks" in column C. If column B contains
"ADC-234 Decking - 5ft" we need column C to autofill with "Decks".

There would be 3-4 other rules. How would we go about doing this?




All times are GMT +1. The time now is 08:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com