Originally Posted by MunnabhaiMBBS
(Post 3952473)
Hi guys, Would really appreciate your help. Need a formula / function that reads the entire row and displays particular text / value in case the row contains a certain word. For instance : Row indicates : House is big : If row contains the word "House", then display "Good" Thanks in advance. |
Originally Posted by nfsfreak
(Post 3952677)
If search is on particular cell, you can use below formula: =IF(FIND(LOWER("house"),LOWER(A1),1)>0,"Good","Bad ") This will return 'Good' if the word 'house' is found in cell A1. Else, it will return 'Bad'. I used 'Lower' to make it case insensitive. EDIT: To search for entire row, you can use the below formula. =IF(MATCH("house",A:A,-1)>0,"Good","Bad") |
Originally Posted by malgudi
(Post 3952724)
Try this : If the Row number 1 has House use formula ISNUMBER(SEARCH("House",1:1)) in say cell A2. It will return true if the row 1 has word House(does not mater in which cell of the Row 1) and False otherwise. |
Originally Posted by MunnabhaiMBBS
(Post 3954640)
Thank you so much for the help. Formula 1 : Worked partially, Showing "#VALUE" in place of Bad. |
Originally Posted by MunnabhaiMBBS
(Post 3954640)
Formula 2 : Returned " #N/A" everywhere. |
Originally Posted by malgudi
(Post 3954662)
Not Sure Why but this is what I tried Attachment 1498688 |
Originally Posted by nfsfreak
(Post 3954709)
Corrected formula: =IF(ISNUMBER(FIND(LOWER("house"),LOWER(A2),0)),"go od","Bad ") Corrected formula: =IF(ISNUMBER((MATCH("house",2:2,-1))),"Good","Bad") 2:2 denotes entire 2nd row. change accordingly for related row number. To search on entire columns, you can replace that with A:A or B:B (related column name) |
Originally Posted by MunnabhaiMBBS
(Post 3955459)
Thanks a lot both of you. Issue is now resolved. Another puzzle: - 3 different sheets with 100, 200 and 300 rows respectively. Can't predict the rows for subsequent sheets. - Using Macro for Pivot table, current selected range is 300 (Rows) - Need to select range for the available rows for future sheets, could be 500, 600, we don't know yet. - Can we give specific range selection instruction so to accommodate all the rows in future. Thanks in advance. |
Originally Posted by Spinnerr
(Post 4549777)
I have a master data sheet where 'Month' is a column. Rows are repeated for employees, when they have a record for the month. I would like to have this data displayed in a single row, kinda normalized view. |
Originally Posted by Spinnerr
(Post 4549777)
Any reusable solution is much appreciated. |
Originally Posted by binand
(Post 4549823)
It might be a good idea to attach a sample spreadsheet which can then be used to publish suggestions. |
Originally Posted by binand
(Post 4549850)
Gave it a try. Here's my attempt (attached). ... see the magic. |
All times are GMT +5.5. The time now is 10:00. |