finding a value in a row

HM9000

New Member
Joined
Jun 21, 2011
Messages
4
Hi

I have a row array with several values (A B C D E) - one in each col.. What formula should I use to check if a value exists in that given row ? e.g if I am searching for the existance of C .. the first 2 rows have it and the third doesnt. If it exists .. would like the value = 1 else 0.

<style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl63 {text-align:center;} --> </style> <table style="border-collapse: collapse;width:390pt" border="0" cellpadding="0" cellspacing="0" width="390"> <col style="width:65pt" span="6" width="65"> <tbody><tr style="height:15.0pt" height="15"> <td class="xl63" style="height:15.0pt;width:65pt" height="15" width="65">C exists</td> <td class="xl63" style="width:65pt" width="65">Array</td> <td class="xl63" style="width:65pt" width="65"></td> <td class="xl63" style="width:65pt" width="65"></td> <td class="xl63" style="width:65pt" width="65"></td> <td class="xl63" style="width:65pt" width="65"></td> </tr> <tr style="height:15.0pt" height="15"> <td class="xl63" style="height:15.0pt" height="15">1</td> <td class="xl63">A</td> <td class="xl63">B</td> <td class="xl63">C</td> <td class="xl63">D</td> <td class="xl63">E</td> </tr> <tr style="height:15.0pt" height="15"> <td class="xl63" style="height:15.0pt" height="15">1</td> <td class="xl63">B</td> <td class="xl63">C</td> <td class="xl63">D</td> <td class="xl63">F</td> <td class="xl63"></td> </tr> <tr style="height:15.0pt" height="15"> <td class="xl63" style="height:15.0pt" height="15">0</td> <td class="xl63">X</td> <td class="xl63">A</td> <td class="xl63">F</td> <td class="xl63">G</td> <td class="xl63">H</td> </tr> </tbody></table>
thanks in advance!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top