Incorrect random results from formula, why?

Titian

Well-known Member
Joined
Dec 17, 2004
Messages
567
Please take a look at the following example. I expect to get in column "C" the last (rightmost) cell along the row, however I am getting random incorrect results often and I don't know why.

Excel Workbook
CDEFGHIJKLMNOPQ
2Week Number1234567891011121314
304.Apr.1320132013201320132013201320132013201320132013201320132013
4Last04.Jan11.Jan18.Jan25.Jan01.Feb08.Feb15.Feb22.Feb01.Mar08.Mar15.Mar22.Mar29.Mar05.Apr
513.Mar*******19.Feb**13.Mar***
6***************
7***************
801.Feb****01.Feb*********
9***************
10***************
1128.Mar************28.Mar*
12***************
1304.Jan04.Jan*************
14***************
15***************
1622.Jan02.Jan**22.Jan**********
17***************
1826.Mar*****05.Feb14.Feb***11.Mar*26.Mar*
1926.Mar**************
Area 4


The formula in cell "C19" is returning the wrong result, it ought to be blank as there are no populated cells to right.
Any help appreciated
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
That's a quite horrible formula for what you are doing - if you are on xl2007+ I would use this:

=IFERROR(LOOKUP(2,1/(D19:Q19<>""),D19:Q19),"")

or perhaps earlier this:

=IF(ISNA(LOOKUP(2,1/(D19:Q19<>""),D19:Q19)),"",LOOKUP(2,1/(D19:Q19<>""),D19:Q19))
 
Upvote 0
Thanks Firefly, I'm using 2007 so I have implemented your first formula above.

It works well - thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,215,651
Messages
6,126,025
Members
449,281
Latest member
redwine77

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