Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
rmellison
 
Posts: n/a
Default Horrible looking IF function....


I using the IF function to enter a certain value from another workbook into
a cell, but if that value happens to be 0, to enter "" (blank). My reference
is quite a long winded expression using VLOOKUP, and I find that I have to
enter the expression twice within the formula, once in the first argument for
IF followed by <0, and again in the second argument for IF, to show what I
want in the cell if the first condition is true. Basically, something like
this, itself has an IF function and VLOOKUP function amongst others...

=IF([expression]<0,[expression],"")

Its easy enough to copy and paste the expression, but I end up with a
function that's 3 lines long in the cell window and it looks pretty hairy!
Surely there must be a tidier way of doing this???


  #2   Report Post  
Ian
 
Posts: n/a
Default

Put your VLOOKUP expression in another cell, then reference this with the If
function.

A1: VLOOKUP....
B1: =IF(A1<0,A1,"")


--
Ian
--
"rmellison" wrote in message
...

I using the IF function to enter a certain value from another workbook
into
a cell, but if that value happens to be 0, to enter "" (blank). My
reference
is quite a long winded expression using VLOOKUP, and I find that I have to
enter the expression twice within the formula, once in the first argument
for
IF followed by <0, and again in the second argument for IF, to show what
I
want in the cell if the first condition is true. Basically, something like
this, itself has an IF function and VLOOKUP function amongst others...

=IF([expression]<0,[expression],"")

Its easy enough to copy and paste the expression, but I end up with a
function that's 3 lines long in the cell window and it looks pretty hairy!
Surely there must be a tidier way of doing this???




  #3   Report Post  
rmellison
 
Posts: n/a
Default

Hadn't considered that! Would certainly work, but would double the number of
cells I have, and I have enough as it is! Was wondering if there was a way of
doing it within a formula, in layman's terms, somthing like this:

=[expression], unless equal to 0, then ""

Not critical really, just frustrated by lengthy formulae....


"Ian" wrote:

Put your VLOOKUP expression in another cell, then reference this with the If
function.

A1: VLOOKUP....
B1: =IF(A1<0,A1,"")


--
Ian
--
"rmellison" wrote in message
...

I using the IF function to enter a certain value from another workbook
into
a cell, but if that value happens to be 0, to enter "" (blank). My
reference
is quite a long winded expression using VLOOKUP, and I find that I have to
enter the expression twice within the formula, once in the first argument
for
IF followed by <0, and again in the second argument for IF, to show what
I
want in the cell if the first condition is true. Basically, something like
this, itself has an IF function and VLOOKUP function amongst others...

=IF([expression]<0,[expression],"")

Its easy enough to copy and paste the expression, but I end up with a
function that's 3 lines long in the cell window and it looks pretty hairy!
Surely there must be a tidier way of doing this???





  #4   Report Post  
Ian
 
Posts: n/a
Default

You could always hide the rows or columns with the VLOOKUP in. You'd still
have the cells, but they wouldn't clutter the appearance up.

Alternatively, post the VLOOKUP fromula to see if anyone here can trim it.

--
Ian
--
"rmellison" wrote in message
...
Hadn't considered that! Would certainly work, but would double the number
of
cells I have, and I have enough as it is! Was wondering if there was a way
of
doing it within a formula, in layman's terms, somthing like this:

=[expression], unless equal to 0, then ""

Not critical really, just frustrated by lengthy formulae....


"Ian" wrote:

Put your VLOOKUP expression in another cell, then reference this with the
If
function.

A1: VLOOKUP....
B1: =IF(A1<0,A1,"")


--
Ian
--
"rmellison" wrote in message
...

I using the IF function to enter a certain value from another workbook
into
a cell, but if that value happens to be 0, to enter "" (blank). My
reference
is quite a long winded expression using VLOOKUP, and I find that I have
to
enter the expression twice within the formula, once in the first
argument
for
IF followed by <0, and again in the second argument for IF, to show
what
I
want in the cell if the first condition is true. Basically, something
like
this, itself has an IF function and VLOOKUP function amongst others...

=IF([expression]<0,[expression],"")

Its easy enough to copy and paste the expression, but I end up with a
function that's 3 lines long in the cell window and it looks pretty
hairy!
Surely there must be a tidier way of doing this???







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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 05:45 PM.

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"