Find the row number of last "0" value in the column

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,377
Office Version
  1. 2010
Hello,

I am using formula to search last number "Row" in find in the column, which work fine with any number 1 to 9, but having problem with "0" does not give correct row number

For example formula in D6 must return for searched value "0" Row number 45, but it is returning 500, and the formula in E6 returning correct Row number 36 for value 2

Like this...


Book1
ABCDEF
1
2
3Get Row NGet Row N
4For ValueFor Value
5Numbers02
6450036
77
85
94
103
111
123
137
146
154
160
175
183
191
207
214
223
235
245
251
262
274
283
295
300
316
323
336
345
351
362
375
384
396
408
414
425
437
441
450
464
473
483
496
504
513
524
534
545
55
56
Sheet1
Cell Formulas
RangeFormula
D6{=MAX(IF(C6:C500=$D$5,ROW(C6:C500)))}
E6{=MAX(IF(C6:C500=$E$5,ROW(C6:C500)))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Please help with correct formula

Thank you all
Excel 2000
Regards,
Moti
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,216,747
Messages
6,132,482
Members
449,729
Latest member
davelevnt

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