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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Wrong data type



 
 
Thread Tools Display Modes
  #1  
Old April 2nd, 2009, 10:50 PM posted to microsoft.public.excel.misc
Dale Long
external usenet poster
 
Posts: 2
Default Wrong data type

This is my first time to post a question, so I'm not sure what this
will look
like or if this will look like a spreadsheet.

A value located in columns 2,3, or 4
will identify a value in column 1.
I am trying to solve this problem. The individual formulas
appear to work OK, but when put together
it comes up with '#VALUE!' which according to the tag
is "wrong data type". What is my problem??
How do I solve it??
Given
4 (Column)
Z (Row)
#VALUE! (Answer)
D (Should be answer)

1 2 3 4
A ^ @ ?
B % !
C $ P
D # X Z

2 $D$21:$D$24
3 $E$21:$E24
4 $F$21:$F$24

'=OFFSET($F$24,0,-($B$13-1)) = D

'=INDEX($D$21:$F$24,(4),(3)) = Z

=MATCH($B$15,$F$21:$F$24,0) = 4

'=VLOOKUP($B$13,$C$27:$D$29,2,FALSE) =
$F$21:$F$24

'=OFFSET(INDEX($D$21:$F$24,MATCH($B$15,VLOOKUP
($B$13,$C$27:$D$29,2,FALSE),0),2),0,-($B$13-1)) = #VALUE!

--
Attitude is what you decide.
  #2  
Old April 3rd, 2009, 11:55 PM posted to microsoft.public.excel.misc
Jim Cone[_2_]
external usenet poster
 
Posts: 434
Default Wrong data type


You can highlight each function and its arguments in the formula bar
and press the F9 key. That will display the value the function returns.
Start with the right most function and work left.
Fix the function with the bad value.
Do not press enter to exit the formula bar, use the Escape key.
--
Jim Cone
Portland, Oregon USA



"Dale Long"
wrote in message
This is my first time to post a question, so I'm not sure what this
will look like or if this will look like a spreadsheet.

A value located in columns 2,3, or 4
will identify a value in column 1.
I am trying to solve this problem. The individual formulas
appear to work OK, but when put together
it comes up with '#VALUE!' which according to the tag
is "wrong data type". What is my problem??
How do I solve it??
Given
4 (Column)
Z (Row)
#VALUE! (Answer)
D (Should be answer)

1 2 3 4
A ^ @ ?
B % !
C $ P
D # X Z

2 $D$21:$D$24
3 $E$21:$E24
4 $F$21:$F$24

'=OFFSET($F$24,0,-($B$13-1)) = D
'=INDEX($D$21:$F$24,(4),(3)) = Z
' =MATCH($B$15,$F$21:$F$24,0) = 4
'=VLOOKUP($B$13,$C$27:$D$29,2,FALSE) =
$F$21:$F$24
'=OFFSET(INDEX($D$21:$F$24,MATCH($B$15,VLOOKUP
($B$13,$C$27:$D$29,2,FALSE),0),2),0,-($B$13-1)) = #VALUE!
--
Attitude is what you decide.
  #3  
Old April 4th, 2009, 02:35 AM posted to microsoft.public.excel.misc
Dale Long
external usenet poster
 
Posts: 2
Default Wrong data type

Hi Jim

Really appreciate your response. I did as you suggested and it shows that
the Match function when combined with the Lookup function returns #VALUE!.
But I don't have a clue what is wrong. Looks to me that if it is OK on each
single function, it ought to be OK when they are combined.
--
Attitude is what you decide.


"Jim Cone" wrote:


You can highlight each function and its arguments in the formula bar
and press the F9 key. That will display the value the function returns.
Start with the right most function and work left.
Fix the function with the bad value.
Do not press enter to exit the formula bar, use the Escape key.
--
Jim Cone
Portland, Oregon USA



"Dale Long"
wrote in message
This is my first time to post a question, so I'm not sure what this
will look like or if this will look like a spreadsheet.

A value located in columns 2,3, or 4
will identify a value in column 1.
I am trying to solve this problem. The individual formulas
appear to work OK, but when put together
it comes up with '#VALUE!' which according to the tag
is "wrong data type". What is my problem??
How do I solve it??
Given
4 (Column)
Z (Row)
#VALUE! (Answer)
D (Should be answer)

1 2 3 4
A ^ @ ?
B % !
C $ P
D # X Z

2 $D$21:$D$24
3 $E$21:$E24
4 $F$21:$F$24

'=OFFSET($F$24,0,-($B$13-1)) = D
'=INDEX($D$21:$F$24,(4),(3)) = Z
' =MATCH($B$15,$F$21:$F$24,0) = 4
'=VLOOKUP($B$13,$C$27:$D$29,2,FALSE) =
$F$21:$F$24
'=OFFSET(INDEX($D$21:$F$24,MATCH($B$15,VLOOKUP
($B$13,$C$27:$D$29,2,FALSE),0),2),0,-($B$13-1)) = #VALUE!
--
Attitude is what you decide.

 




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 06:37 PM.


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