Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have to format a report every day that is imported from SQL to Excel. My
problem is that I am stuck on trying to "insert" text descriptions in Column C based on what is in Column B. The number of rows may vary from day to day (ie: one day the report is 315 rows and the next it may be 278 or 480). So, the total range of Col B would extend from (B2:end) on any given day. In plain language, If any of the data in Range (B:B) begins with "ML*" insert UPPERCASE "ABC" in Col C2 or If any of the data in Range(B:B) begins with "W*" insert UPPERCASE "ABC" in Col C2... (***the data inserted goes in the cell directly to the right of the data in cell Bx) If any data in B2 contains "*105*" or contains "*SR*" or contains "*KBV*" or contains "*KR*" insert UPPERCASE "DEF" in C2, etc... Any data left in C2:end not already formatted with any of the above stuff, "ABC" I have written a macro to do the initial formatting that gets rid of subtotals, deletes a column, etc...but cannot go any further with my limited programming skills, so any code that can do what I want as specified above will be inserted into the macro I already have. Any assistance would be appreciated. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200912/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting a cell based on other cells' data | Excel Worksheet Functions | |||
Conditional Formatting Based of Cells Based on Data Entry in anoth | Excel Discussion (Misc queries) | |||
Conditional Formatting based on data in adjacent cell & restrict save without required data | Excel Programming | |||
Formatting Rows of Data based on Column Data | Excel Worksheet Functions | |||
How do I use conditional formatting on all rows based on data | Excel Discussion (Misc queries) |