A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Return SEARCHED Column Number of Numeric Label and Value



 
 
Thread Tools Display Modes
  #21  
Old January 29th, 2006, 09:17 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Return SEARCHED Column Number of Numeric Label and Value

In article 5b18632390ed1@uwe, "Sam via OfficeKB.com" u4102@uwe
wrote:

And just to be sure, let's go through a few more examples using the values
in your last post...


Criteria ---------- Result


1 ---------- Column 14 Should be Column 2


7 ---------- Column 11


4 ---------- Column 6


3 ---------- Column 5


12 ---------- Column 11


Are these correct?


Almost, Numeric Label 1(one) should be Column 2


I'm not sure where I got Column 14. I meant to say Column 2. So far,
so good.

Now, let's replace 5 with 14, and 12 with 5.
If the criteria is 5, is Column 7 the correct answer?


Not sure what you mean?


Replace the Numeric Label 5 with Numeric Label 14, and replace Numeric
Label 12 with Numeric Label 5. If the criteria/Numeric Label is 5, is
Column 7 your expected result?
  #22  
Old January 29th, 2006, 09:56 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Return SEARCHED Column Number of Numeric Label and Value

Hi Domenic,

Replace the Numeric Label 5 with Numeric Label 14, and replace Numeric
Label 12 with Numeric Label 5. If the criteria/Numeric Label is 5, is
Column 7 your expected result?


Yes

Cheers,
Sam

Domenic wrote:
And just to be sure, let's go through a few more examples using the values
in your last post...

[quoted text clipped - 14 lines]

Almost, Numeric Label 1(one) should be Column 2


I'm not sure where I got Column 14. I meant to say Column 2. So far,
so good.

Now, let's replace 5 with 14, and 12 with 5.
If the criteria is 5, is Column 7 the correct answer?


Not sure what you mean?


Replace the Numeric Label 5 with Numeric Label 14, and replace Numeric
Label 12 with Numeric Label 5. If the criteria/Numeric Label is 5, is
Column 7 your expected result?


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200601/1
  #23  
Old January 30th, 2006, 03:10 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Return SEARCHED Column Number of Numeric Label and Value

Assuming that the Numerical Labels are unique, and that X11 contains the
criterion, try the following...

1) Change the reference for the defined name 'Pos' to...

=MATCH(Sheet1!$X$11,NLabels,0)

For some reason you had Sheet!$X$10 as your cell reference in the sample
file you sent me.

2) Use the following formula for Y11...

=IF(ISNUMBER(MATCH(NNV,NValues,0)),(MAX(IF(SubRang eX11,COLUMN(SubRange)-
MIN(COLUMN(SubRange))+1))+1)+(MATCH(NNV,NValues,0)-1),MAX(IF(NValuesNNV,
COLUMN(NValues)-MIN(COLUMN(NValues))+1)+1))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article 5b1991d4d7bd9@uwe, "Sam via OfficeKB.com" u4102@uwe
wrote:

Hi Domenic,

Replace the Numeric Label 5 with Numeric Label 14, and replace Numeric
Label 12 with Numeric Label 5. If the criteria/Numeric Label is 5, is
Column 7 your expected result?


Yes

Cheers,
Sam

  #24  
Old January 30th, 2006, 06:16 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Return SEARCHED Column Number of Numeric Label and Value

Hi Domenic,

Thank you for all your time and patience. Thank you once again for a solution
- a Great Formula!

Cheers,
Sam

Domenic wrote:
Assuming that the Numerical Labels are unique, and that X11 contains the
criterion, try the following...

1) Change the reference for the defined name 'Pos' to...

=MATCH(Sheet1!$X$11,NLabels,0)

For some reason you had Sheet!$X$10 as your cell reference in the sample
file you sent me.

2) Use the following formula for Y11...

=IF(ISNUMBER(MATCH(NNV,NValues,0)),(MAX(IF(SubRan geX11,COLUMN(SubRange)-
MIN(COLUMN(SubRange))+1))+1)+(MATCH(NNV,NValues,0 )-1),MAX(IF(NValuesNNV,
COLUMN(NValues)-MIN(COLUMN(NValues))+1)+1))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

Hi Domenic,

[quoted text clipped - 6 lines]
Cheers,
Sam


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200601/1
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:00 AM.


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