A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Is it possible?



 
 
Thread Tools Display Modes
  #1  
Old August 16th, 2006, 02:40 AM posted to microsoft.public.excel.misc
Bobbie Jo
external usenet poster
 
Posts: 2
Default Is it possible?

But I have a list of number where 6 equals 500, 7 equals 600, 8 equals 700,
and so one. (Probably about 20 of them) So I came up with this:

=If(b1=6,"500")

And it works. But the problem is that B1 will change, it could be 7 or 8.
And I want that number to correspond with the correct value. I've tried
separating it with a colon and I've put them in parentheses. And it's not
working.

Any ideas?
--
Bobbie Jo
  #2  
Old August 16th, 2006, 02:58 AM posted to microsoft.public.excel.misc
Alan
external usenet poster
 
Posts: 431
Default Is it possible?

You can nest the IF's like
=IF(B1=6,500,IF(B6=7,600)) etc
but you can only nest seven of them. The best way to do this I think is to
use a VLOOKUP table, have a look at VLOOKUP in help,
Regards,
Alan.
"Bobbie Jo" wrote in message
...
But I have a list of number where 6 equals 500, 7 equals 600, 8 equals
700,
and so one. (Probably about 20 of them) So I came up with this:

=If(b1=6,"500")

And it works. But the problem is that B1 will change, it could be 7 or 8.
And I want that number to correspond with the correct value. I've tried
separating it with a colon and I've put them in parentheses. And it's not
working.

Any ideas?
--
Bobbie Jo



  #3  
Old August 16th, 2006, 03:02 AM posted to microsoft.public.excel.misc
MartinW
external usenet poster
 
Posts: 848
Default Is it possible?

Hi Bobbie Jo,

I'm sure someone will come up with a simpler way but one
that will work is this

=IF(B1=6,500,"")&IF(B1=7,600,"")&IF(B1=8,700,"") etc. etc.

HTH
Martin


  #4  
Old August 16th, 2006, 03:08 AM posted to microsoft.public.excel.misc
Steel Monkey
external usenet poster
 
Posts: 1
Default Is it possible?


If you have about 20 different values i would put them all in a list and
then use a vlookup

If the values you want returned are in E:F ie


E F
5 600
6 700
7 800

In cell A2 you would type =vlookup(B2,E:F,2, FALSE) and then in cell b2
you would type in the number ie 6. This would return 700 in cell A2

Change this around to suit your needs

Let me know how you go


--
Steel Monkey
------------------------------------------------------------------------
Steel Monkey's Profile: http://www.excelforum.com/member.php...o&userid=29051
View this thread: http://www.excelforum.com/showthread...hreadid=572053

  #5  
Old August 16th, 2006, 03:52 AM posted to microsoft.public.excel.misc
Bobbie Jo
external usenet poster
 
Posts: 2
Default Is it possible?

Thanks everyone! I'm going to give each of your ideas a shot. Appreciate it!

--
Bobbie Jo


"Steel Monkey" wrote:


If you have about 20 different values i would put them all in a list and
then use a vlookup

If the values you want returned are in E:F ie


E F
5 600
6 700
7 800

In cell A2 you would type =vlookup(B2,E:F,2, FALSE) and then in cell b2
you would type in the number ie 6. This would return 700 in cell A2

Change this around to suit your needs

Let me know how you go


--
Steel Monkey
------------------------------------------------------------------------
Steel Monkey's Profile: http://www.excelforum.com/member.php...o&userid=29051
View this thread: http://www.excelforum.com/showthread...hreadid=572053


  #6  
Old August 17th, 2006, 08:55 AM posted to microsoft.public.excel.misc
JC
external usenet poster
 
Posts: 9
Default Is it possible?

On Tue, 15 Aug 2006 18:40:02 -0700, Bobbie Jo
wrote:

But I have a list of number where 6 equals 500, 7 equals 600, 8 equals 700,
and so one. (Probably about 20 of them) So I came up with this:

=If(b1=6,"500")

And it works. But the problem is that B1 will change, it could be 7 or 8.
And I want that number to correspond with the correct value. I've tried
separating it with a colon and I've put them in parentheses. And it's not
working.

Any ideas?


How about using =100*B1-100 or =100*(B1-1)?
--

Cheers . . . JC
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.