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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

convert numbers



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2010, 09:32 AM posted to microsoft.public.excel.worksheet.functions
ekkeindoha
external usenet poster
 
Posts: 47
Default convert numbers

Good day,
I would like to auto change the top number to 5 and descending to the last
one to be 2.
2868 5
1800
1800
1200
624
624
576
576
528
528
480 2
480 2

  #2  
Old January 7th, 2010, 09:42 AM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default convert numbers

Hi,

What is the logic for the converssion? Why does 2868 become 5 and 480 become
2?

Mike

"ekkeindoha" wrote:

Good day,
I would like to auto change the top number to 5 and descending to the last
one to be 2.
2868 5
1800
1800
1200
624
624
576
576
528
528
480 2
480 2

  #3  
Old January 7th, 2010, 09:42 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default convert numbers

With data in cell A1:A12, try the below in cell B1 and copy down as required

=IF(COUNTIF($A$1:$A$12,""&A1)=0,5,IF(COUNTIF($A$1 :$A$12,""&A1)=0,2,""))

--
Jacob


"ekkeindoha" wrote:

Good day,
I would like to auto change the top number to 5 and descending to the last
one to be 2.
2868 5
1800
1800
1200
624
624
576
576
528
528
480 2
480 2

  #4  
Old January 7th, 2010, 10:39 AM posted to microsoft.public.excel.worksheet.functions
Joe User[_2_]
external usenet poster
 
Posts: 757
Default convert numbers

"ekkeindoha" wrote:
I would like to auto change the top number to 5 and descending
to the last one to be 2.


You neglected to say how you want the numbers between 5 and 2 to be
distributed.

Perhaps the following is what you have in mind, assumeing the numbers are in
A1:A12 in descending order.

B1: =2+(5-2)*(A1-$A$12)/($A$1-$A$12)

Copy down through B12.


----- original message -----

"ekkeindoha" wrote in message
...
Good day,
I would like to auto change the top number to 5 and descending to the last
one to be 2.
2868 5
1800
1800
1200
624
624
576
576
528
528
480 2
480 2


 




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 05:18 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.