Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Below is a code that looks in columns P,Q, and R and if it
finds the character "%" will put the value "percent" in the cell in columnO. I would also like the code to also look for another condition. That is I want it to look in the cell in ColumnN and if it finds the value "percent" anywhere in that cell, will also put the value "percent" in the cell in columnO. Dim c As Range For Each c In Range("O2:O100").Cells With c If InStr(1, .Offset(, 1).NumberFormat, "%") Or _ InStr(1, .Offset(, 2).NumberFormat, "%") Or _ InStr(1, .Offset(, 3).NumberFormat, "%") Then .Value = "percent" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lock Cell Format - Allow copy and paste of data without format change | Excel Worksheet Functions | |||
Adding time in 24 hour format to produce hours in decimal format | Excel Worksheet Functions | |||
Need help with converting CUSTOM format/TEXT format to DATE format | Excel Worksheet Functions | |||
Replace million-billion number format to lakhs-crores format | Excel Discussion (Misc queries) | |||
how to format excel format to text format with separator "|" in s. | New Users to Excel |