LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default nested if statements


=IF(ISNA(MATCH($D$7,Sheet3!BV1:BV11,0))=TRUE,"",LO OKUP($D$7,Sheet3!BV1:BW11)
)

or


=IF(ISNA(MATCH($D$7,Sheet3!BV1:BV11,0))=TRUE,"",VL OOKUP($D$7,Sheet3!BV1:BW11
,2,False))
--
Regards,
Tom Ogilvy

"steve" wrote in message
...
thanks guys, how do i use vlookup if i put my table in a different sheet?

"STEVE BELL" wrote:

Steve,

If you can determine a mathmatical relationship - than you can just

build a
formula based on the value of D7. I build a scatter plot and found that
most of the values matched a powered trend line.

But the easiest would be to use a Lookup Table. (table = $BV$1:$BW$11)
=LOOKUP($D$7,BV1:BW11)

Note that it will return #N/A if D7 isn't found.

You can get around that with
=IF(ISNA(MATCH($D$7,BV1:BV11,0))=TRUE,"",LOOKUP($D $7,BV1:BW11))

Otherwise you can use a Case Select in code.

--
steveB

Remove "AYN" from email to respond
"steve" wrote in message
...
i use the following if statement in my sheet:

=IF(D7=3,0.376,IF(D7=4,0.668,IF(D7=5,1.043,IF(D7=6 ,1.502)))))

the problem is that 7 IF statements is the max, and i have 11 that i

need
to
use. do i need to switch to a macro? here is how the list goes. the
first
column is the size of the bar, the second column is the weight(pounds

per
foot)

3 .376
4 .668
5 1.043
6 1.502
7 2.044
8 2.67
9 3.4
10 4.303
11 5.313
14 7.650
18 13.6






 
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/And/Or statements Belinda Excel Worksheet Functions 4 February 27th 10 05:33 PM
NESTED IF STATEMENTS [email protected] New Users to Excel 6 July 20th 08 01:07 PM
Nested IF Statements Django Excel Discussion (Misc queries) 2 March 4th 06 01:44 AM
Help with Nested If Statements THEFALLGUY Excel Discussion (Misc queries) 6 September 3rd 05 10:03 AM
I want to use more than 7 nested if then statements IF I only had a brain for IF statements Excel Worksheet Functions 11 August 9th 05 01:28 AM


All times are GMT +1. The time now is 09:00 PM.

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

About Us

"It's about Microsoft Excel"