CF with leading 0.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
I need a CF formula to solve the highlighting in the yellow table on the right, I had a similar post before which I tried to used the formula from it but doesn't work !!! so if someone can help ?

Thank you.

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
101234567890123456789Arrange from.
2
37012345678921467188691001001246781869100100
400123456789325781991101101123578919101101
51012345678913689201021021021236891020102102
6501234567892179102111310310312379101121103103
7301234567893281011112410410412348101112104104
84012345678943911221351051051234591213105105
94012345678954102131461061061234561014106106
101012345678965113141571071071345671115107107
111012345678971124251681081081245781216108108
120012345678981135361791091091356891317109109
13101234567891214647181011011012467101418110110
14
Sheet3
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Would someone have different formulas than Mark, that would give me the result I'm looking for, for the right table in yellow, please.

I tried and tried his formulas, even on a brain new sheet just in case my number would not be a number value on the previous sheet and nothing, I can't get it to work ???

Thanks.
 
Upvote 0
Try this:


<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>Y</th><th>Z</th><th>AA</th><th>AB</th><th>AC</th><th>AD</th><th>AE</th><th>AF</th><th>AG</th><th>AH</th><th>AI</th><th>AJ</th><th>AK</th><th>AL</th><th>AM</th><th>AN</th><th>AO</th><th>AP</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;background-color: #FAC090;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #E6B9B8;;">6</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;background-color: #E6B9B8;;">8</td><td style="text-align: center;background-color: #E6B9B8;;">18</td><td style="text-align: center;background-color: #FF0000;;">69</td><td style="text-align: center;background-color: #E6B9B8;;">100</td><td style="text-align: center;background-color: #E6B9B8;;">100</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: center;background-color: #E6B9B8;;">0</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #FF0000;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">5</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;background-color: #E6B9B8;;">8</td><td style="text-align: center;background-color: #E6B9B8;;">9</td><td style="text-align: center;background-color: #E6B9B8;;">19</td><td style="text-align: center;background-color: #E6B9B8;;">101</td><td style="text-align: center;background-color: #E6B9B8;;">101</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #FF0000;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">6</td><td style="text-align: center;background-color: #E6B9B8;;">8</td><td style="text-align: center;background-color: #E6B9B8;;">9</td><td style="text-align: center;background-color: #E6B9B8;;">10</td><td style="text-align: center;background-color: #E6B9B8;;">20</td><td style="text-align: center;background-color: #E6B9B8;;">102</td><td style="text-align: center;background-color: #E6B9B8;;">102</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: center;background-color: #E6B9B8;;">5</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;background-color: #E6B9B8;;">9</td><td style="text-align: center;background-color: #E6B9B8;;">10</td><td style="text-align: center;background-color: #E6B9B8;;">11</td><td style="text-align: center;background-color: #FF0000;;">21</td><td style="text-align: center;background-color: #E6B9B8;;">103</td><td style="text-align: center;background-color: #E6B9B8;;">103</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #E6B9B8;;">8</td><td style="text-align: center;background-color: #FF0000;;">10</td><td style="text-align: center;background-color: #E6B9B8;;">11</td><td style="text-align: center;background-color: #E6B9B8;;">12</td><td style="text-align: center;background-color: #E6B9B8;;">104</td><td style="text-align: center;background-color: #E6B9B8;;">104</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #E6B9B8;;">5</td><td style="text-align: center;background-color: #E6B9B8;;">9</td><td style="text-align: center;background-color: #FF0000;;">12</td><td style="text-align: center;background-color: #E6B9B8;;">13</td><td style="text-align: center;background-color: #E6B9B8;;">105</td><td style="text-align: center;background-color: #E6B9B8;;">105</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #FF0000;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #E6B9B8;;">5</td><td style="text-align: center;background-color: #E6B9B8;;">6</td><td style="text-align: center;background-color: #E6B9B8;;">10</td><td style="text-align: center;background-color: #E6B9B8;;">14</td><td style="text-align: center;background-color: #E6B9B8;;">106</td><td style="text-align: center;background-color: #E6B9B8;;">106</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #FF0000;;">5</td><td style="text-align: center;background-color: #E6B9B8;;">6</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;background-color: #E6B9B8;;">11</td><td style="text-align: center;background-color: #E6B9B8;;">15</td><td style="text-align: center;background-color: #E6B9B8;;">107</td><td style="text-align: center;background-color: #E6B9B8;;">107</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #FF0000;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #E6B9B8;;">5</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;background-color: #E6B9B8;;">8</td><td style="text-align: center;background-color: #E6B9B8;;">12</td><td style="text-align: center;background-color: #E6B9B8;;">16</td><td style="text-align: center;background-color: #E6B9B8;;">108</td><td style="text-align: center;background-color: #E6B9B8;;">108</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: center;background-color: #E6B9B8;;">0</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #E6B9B8;;">3</td><td style="text-align: center;background-color: #E6B9B8;;">5</td><td style="text-align: center;background-color: #E6B9B8;;">6</td><td style="text-align: center;background-color: #FF0000;;">8</td><td style="text-align: center;background-color: #E6B9B8;;">9</td><td style="text-align: center;background-color: #E6B9B8;;">13</td><td style="text-align: center;background-color: #E6B9B8;;">17</td><td style="text-align: center;background-color: #E6B9B8;;">109</td><td style="text-align: center;background-color: #E6B9B8;;">109</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;;"></td><td style="text-align: center;background-color: #E6B9B8;;">1</td><td style="text-align: center;background-color: #FF0000;;">2</td><td style="text-align: center;background-color: #E6B9B8;;">4</td><td style="text-align: center;background-color: #E6B9B8;;">6</td><td style="text-align: center;background-color: #E6B9B8;;">7</td><td style="text-align: center;background-color: #E6B9B8;;">10</td><td style="text-align: center;background-color: #E6B9B8;;">14</td><td style="text-align: center;background-color: #E6B9B8;;">18</td><td style="text-align: center;background-color: #E6B9B8;;">110</td><td style="text-align: center;background-color: #E6B9B8;;">110</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;background-color: #92D050;;">VERDADEIRO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td><td style="text-align: center;;">FALSO</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;">***</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">AI3</th><td style="text-align:left">=INDEX(<font color="Blue">$N3:$W3,,$A3+1</font>)=Y3</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">AJ3</th><td style="text-align:left">=INDEX(<font color="Blue">$N3:$W3,,$A3+1</font>)=Z3</td></tr></tbody></table></td></tr></table><br />
Markmzz
 
Upvote 0
Hi Mark,

Now I got it the reason why it wouldn't work is because you wrote the formula in your native language which work for your Excel from over there, transcript in English language now work perfectly.

Thank you for been persistent.

Check your PM box.
 
Upvote 0
Hi Mark,

Now I got it the reason why it wouldn't work is because you wrote the formula in your native language which work for your Excel from over there, transcript in English language now work perfectly.

Thank you for been persistent.

Check your PM box.

Hi Serge,

I’m sorry for wrote the formula in my native language (ÍNDICE and not INDEX) . I didn’t see the problem.

But in the post #14 the formula is in English.

And thanks for the feedback.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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