Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jeremy via OfficeKB.com
 
Posts: n/a
Default IF a number then....

This function works for me =IF(B44000, VLOOKUP(B4,Sheet1!#REF!,2), "S")

but I need to and an IF statment in front:

IF(B4=#,(function above), "S")

In other words, only if it is a number, if not a number, then "S".

--
Message posted via http://www.officekb.com
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=if(isnumber(b4),vlookup(....),"S")

"jeremy via OfficeKB.com" wrote in message
...
This function works for me =IF(B44000, VLOOKUP(B4,Sheet1!#REF!,2), "S")

but I need to and an IF statment in front:

IF(B4=#,(function above), "S")

In other words, only if it is a number, if not a number, then "S".

--
Message posted via http://www.officekb.com



  #3   Report Post  
Ron de Bruin
 
Posts: n/a
Default


Hi jeremy

Look in the help for the ISNUMBER worksheetfunction


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jeremy via OfficeKB.com" wrote in message ...
This function works for me =IF(B44000, VLOOKUP(B4,Sheet1!#REF!,2), "S")

but I need to and an IF statment in front:

IF(B4=#,(function above), "S")

In other words, only if it is a number, if not a number, then "S".

--
Message posted via http://www.officekb.com



  #4   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Try =IF(AND(ISNUMBER(B4),B44000), VLOOKUP(B4,table-ref,2), "S")
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"jeremy via OfficeKB.com" wrote in message
...
This function works for me =IF(B44000, VLOOKUP(B4,Sheet1!#REF!,2), "S")

but I need to and an IF statment in front:

IF(B4=#,(function above), "S")

In other words, only if it is a number, if not a number, then "S".

--
Message posted via http://www.officekb.com



  #5   Report Post  
jeremy via OfficeKB.com
 
Posts: n/a
Default

Thanks guys....

--
Message posted via http://www.officekb.com


  #6   Report Post  
jeremy via OfficeKB.com
 
Posts: n/a
Default

HEY THANKS

This funtion works for me, if there are no letters behind numbers

=IF(ISNUMBER(B7),(IF(B74000, VLOOKUP(B7,Sheet1!A2:B263,2), "S")), "S")

but some of the numbers have a letter or two behind them or an apostrophy
in front, which I want to
ignore (eg. 4123HG i want to recognize as 4123)....

jeremy

--
Message posted via http://www.officekb.com
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Random Number Questions Greegan Excel Worksheet Functions 1 January 5th 05 02:00 AM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
Defining a number in a cell by text then subtracting it by the tex Crowraine Excel Worksheet Functions 1 December 16th 04 07:49 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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