Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to fix search to header cell?

I have a table like this:

Name Response Thursday
A Monday, Thursday Yes
B Tuesday No
C Wednesday No

This is an output of a Google Form response that I use to collect data, In Column C, every cell contains this formula:

=IF(ISNUMBER(SEARCH("Thursday",B2)),"Yes","")

To populate the "Yes". However, its quite cumbersome to replicate this if I want change "Thursday" to something else. When I try to insert it as C1, as I populate down the cells, it auto increment to C1,C2,C3 etc.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Is there a way to fix the formulate to

=IF(ISNUMBER(SEARCH(C1,B2)),"Yes","")

Across all cells and just have B2 increment?

Thanks!

>Solution :

The cell reference that you are using, such as C1, is relative to the formula position. So when you copy the formula one row down, C1 becomes C2 and so on.
To prevent this you need to make the row and of column address obsolete so that C1 remains C1 when the formula is copied somewhere else. To make a Row or Column absolute, precede the Row and of column by the character $. To keep the row absolute, you would use C$1 instead of C1. The key F4 will help cycle through the option when the cell address is selected in the formula.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading