Referencing Drop-down list error #n/a

applefritter

New Member
Joined
Sep 2, 2016
Messages
6
Hello,
I have a multi-sheet workbook and I am having problems with a cell in sheet 1 that references another cell in sheet 2. That second cell is populated by means of a drop-down list and I’m sure that’s where my problem lies but I don’t know how to fix it. I keep getting the #N/A error.
Here’s the breakdown of the sheets and cells involved.

Sheet 1 named “Days”
Sheet 2, named “PrimaryHistory”
Sheet 3, named “Lists” (This sheet contains all the various drop down lists used throughout my workbook)

This is my problem formula in Sheet “Days”, cell F12:
=INDEX(PrimaryHistory!$B:$B,MATCH(9.99999999999999E+307,PrimaryHistory!$B:$B))

  • Where F12 should be the last populated cell from "PrimaryHistory" column B
  • Where “PrimaryHistory” column B is populated by means of a drop down list of names from a list on sheet “Lists”.

I’ve tried creating the list off to the side within the “PrimaryHistory” sheet but I still have the same error. So what do I need to add to my formula to get it to give me the proper text?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
If PrimaryHistory!B:B has only text-filled cells, your formula will return #N/A b/c its looking for the last cell with a number in it. Fluff's formula will provide the value in the last cell filled with text.

Here's an alternative that will find the value in the last filled cell regardless of whether it contains text or a number.

=LOOKUP(2,1/(PrimaryHistory!$B:$B<>0),PrimaryHistory!$B:$B)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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