ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If statement (https://www.excelbanter.com/excel-discussion-misc-queries/142519-if-statement.html)

rascal

If statement
 
Hi,
I am trying to put a formula in excel that will look at cell A1 and if that
number is less than 500 insert a "not achieved" in the cell, if the number is
greater than 501 and less than 1000 put an "achieved" in the cell and if the
number is greater than 1001 put an "exceeded" in the cell.
Thanks for your help

Sandy Mann

If statement
 
If you really mean 0 to 500 inclusive and 501 to 1,000 inclusive the try:

=LOOKUP(A1,{0,501,1001},{"Not Achieved","Achieved","Exceeded"})

I you meant 0 to 499 and 500 to 999 then use:

=LOOKUP(A1,{0,500,1000},{"Not Achieved","Achieved","Exceeded"})

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"rascal" wrote in message
...
Hi,
I am trying to put a formula in excel that will look at cell A1 and if
that
number is less than 500 insert a "not achieved" in the cell, if the number
is
greater than 501 and less than 1000 put an "achieved" in the cell and if
the
number is greater than 1001 put an "exceeded" in the cell.
Thanks for your help




rascal

If statement
 
thanks Sandy:
That is so much easier than the way I was trying to do it. Much appreciated


"Sandy Mann" wrote:

If you really mean 0 to 500 inclusive and 501 to 1,000 inclusive the try:

=LOOKUP(A1,{0,501,1001},{"Not Achieved","Achieved","Exceeded"})

I you meant 0 to 499 and 500 to 999 then use:

=LOOKUP(A1,{0,500,1000},{"Not Achieved","Achieved","Exceeded"})

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"rascal" wrote in message
...
Hi,
I am trying to put a formula in excel that will look at cell A1 and if
that
number is less than 500 insert a "not achieved" in the cell, if the number
is
greater than 501 and less than 1000 put an "achieved" in the cell and if
the
number is greater than 1001 put an "exceeded" in the cell.
Thanks for your help





Sandy Mann

If statement
 
You're very welcome, thanks for the feedback

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"rascal" wrote in message
...
thanks Sandy:
That is so much easier than the way I was trying to do it. Much
appreciated


"Sandy Mann" wrote:

If you really mean 0 to 500 inclusive and 501 to 1,000 inclusive the try:

=LOOKUP(A1,{0,501,1001},{"Not Achieved","Achieved","Exceeded"})

I you meant 0 to 499 and 500 to 999 then use:

=LOOKUP(A1,{0,500,1000},{"Not Achieved","Achieved","Exceeded"})

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"rascal" wrote in message
...
Hi,
I am trying to put a formula in excel that will look at cell A1 and if
that
number is less than 500 insert a "not achieved" in the cell, if the
number
is
greater than 501 and less than 1000 put an "achieved" in the cell and
if
the
number is greater than 1001 put an "exceeded" in the cell.
Thanks for your help








All times are GMT +1. The time now is 06:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com