#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Multiple If Stmts

I've attempted to create a formula that by changing the value in one
designated cell would look up the the value in different vlookup ranges. the
formula is:

=IF($H8=1,(VLOOKUP($I8,$H$14:$M$92,3,IF($H8=2,(VLO OKUP($I8,H95:M173,3,IF($H8=3,(VLOOKUP($I8,H176:M25 4,3,0)))))))))

so if H8=1 then it would look up the above reference and return the value in
column 3. The formula works until I try and add multiple if stmts. Could
use your help....thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Multiple If Stmts

Hi,

Try it this way

=CHOOSE(H8,VLOOKUP(I8,H14:M92,3),VLOOKUP(I8,H95:M1 73,3),VLOOKUP(I8,H176:M254,3))

Mike

"Kgov" wrote:

I've attempted to create a formula that by changing the value in one
designated cell would look up the the value in different vlookup ranges. the
formula is:

=IF($H8=1,(VLOOKUP($I8,$H$14:$M$92,3,IF($H8=2,(VLO OKUP($I8,H95:M173,3,IF($H8=3,(VLOOKUP($I8,H176:M25 4,3,0)))))))))

so if H8=1 then it would look up the above reference and return the value in
column 3. The formula works until I try and add multiple if stmts. Could
use your help....thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Multiple If Stmts

Sweet it worked! Thank you!

"Mike H" wrote:

Hi,

Try it this way

=CHOOSE(H8,VLOOKUP(I8,H14:M92,3),VLOOKUP(I8,H95:M1 73,3),VLOOKUP(I8,H176:M254,3))

Mike

"Kgov" wrote:

I've attempted to create a formula that by changing the value in one
designated cell would look up the the value in different vlookup ranges. the
formula is:

=IF($H8=1,(VLOOKUP($I8,$H$14:$M$92,3,IF($H8=2,(VLO OKUP($I8,H95:M173,3,IF($H8=3,(VLOOKUP($I8,H176:M25 4,3,0)))))))))

so if H8=1 then it would look up the above reference and return the value in
column 3. The formula works until I try and add multiple if stmts. Could
use your help....thanks

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
Nested 'If" stmts samoan Excel Discussion (Misc queries) 6 October 31st 08 01:37 PM
Creating macros with if stmts Lisa12 Excel Discussion (Misc queries) 3 July 15th 08 11:38 AM
Monthly bank stmts KathyT Excel Worksheet Functions 5 January 3rd 07 05:32 AM
view multiple files in multiple windows on multiple screens. tcom Excel Discussion (Misc queries) 7 September 15th 05 09:35 PM
IF Statement that's conditional on multiple IF Stmts in other cell Pat Excel Worksheet Functions 1 March 26th 05 10:31 PM


All times are GMT +1. The time now is 03:57 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"