Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Nick
 
Posts: n/a
Default Formula Works Only Sometimes???

I have a formula that works sometimes, but not others.

My example file can be found at www.nmberger.com/example.xls.

After you click the button (make sure cell A2 is highlighted before you
click the button or the formula won't work at all), you select a project from
the list box. Then the all values associated with that project should appear
in the next column over. It works with a lot of the projects, but not all.
Select 4008 or A1GQ, for instance, and you will get values in return. Select
F3MA, 6008, or 1020 and you get nothing. But if you scroll over to columns Y
and Z, you will see that there is values associated with those projects.

Any ideas???

Thanks in advance.
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

I checked out your file but did so with macros disabled. I
don't trust ya!

Just a quick look over, your formula uses uneven ranges
and references:

=INDEX($Z$3:$Z$451,SMALL(IF($Y$2:$Y$451=$A$2,ROW
(A$2:A$451)),ROW(2:2)))

Are you specifically wanting to start with the 2nd value?

Is your formula generated by code?

Change to:

=INDEX($Z$2:$Z$451,SMALL(IF($Y$2:$Y$451=$A$2,ROW
(1:450)),ROW(1:1)))

You don't need code to do this.

Biff

-----Original Message-----
I have a formula that works sometimes, but not others.

My example file can be found at

www.nmberger.com/example.xls.

After you click the button (make sure cell A2 is

highlighted before you
click the button or the formula won't work at all), you

select a project from
the list box. Then the all values associated with that

project should appear
in the next column over. It works with a lot of the

projects, but not all.
Select 4008 or A1GQ, for instance, and you will get

values in return. Select
F3MA, 6008, or 1020 and you get nothing. But if you

scroll over to columns Y
and Z, you will see that there is values associated with

those projects.

Any ideas???

Thanks in advance.
.

  #3   Report Post  
Gary Brown
 
Posts: n/a
Default

Sorry Nick,
But we NEVER download mystery files.
Sincerely,
Gary Brown

"Nick" wrote:

I have a formula that works sometimes, but not others.

My example file can be found at www.nmberger.com/example.xls.

After you click the button (make sure cell A2 is highlighted before you
click the button or the formula won't work at all), you select a project from
the list box. Then the all values associated with that project should appear
in the next column over. It works with a lot of the projects, but not all.
Select 4008 or A1GQ, for instance, and you will get values in return. Select
F3MA, 6008, or 1020 and you get nothing. But if you scroll over to columns Y
and Z, you will see that there is values associated with those projects.

Any ideas???

Thanks in advance.

  #4   Report Post  
Nick
 
Posts: n/a
Default

I understand. Probably a good practice. The macro isn't important to my
problem anyways. It just takes distinct projects out of the list and returns
it to a cell.

"Gary Brown" wrote:

Sorry Nick,
But we NEVER download mystery files.
Sincerely,
Gary Brown

"Nick" wrote:

I have a formula that works sometimes, but not others.

My example file can be found at www.nmberger.com/example.xls.

After you click the button (make sure cell A2 is highlighted before you
click the button or the formula won't work at all), you select a project from
the list box. Then the all values associated with that project should appear
in the next column over. It works with a lot of the projects, but not all.
Select 4008 or A1GQ, for instance, and you will get values in return. Select
F3MA, 6008, or 1020 and you get nothing. But if you scroll over to columns Y
and Z, you will see that there is values associated with those projects.

Any ideas???

Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
looking for a formula Amanda Excel Worksheet Functions 5 January 5th 05 07:37 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Baffling formula problem Ken Schmidt Excel Discussion (Misc queries) 2 December 21st 04 07:52 AM
Formula Result Correct but value in the cell is wrong jac Excel Worksheet Functions 2 December 17th 04 08:05 PM


All times are GMT +1. The time now is 06:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"