Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pothgulla
 
Posts: n/a
Default Excel Formula help


I am a 61 year old beginner !!!

I need help to write a formula to get the following result.

B1=5 then C1 should read 1
B1=5.5 then C1 should read 1.5
B1=6 then C1 should read 2
B1=6.5 then C1 should read 2.5
B1=7 then C1 should read 3
B1=8 then C1 should read 2
B1=8.2 then C1 should read 2.2
B1=8.3 then C1 should read 2.3
B1=8.5 then C1 should read 2.5
B1=9 then C1 should read 3
B1=10 then C1 should read 4

I hope someone could help me out.

Thanks

pothgulla


--
pothgulla
------------------------------------------------------------------------
pothgulla's Profile: http://www.excelforum.com/member.php...o&userid=26431
View this thread: http://www.excelforum.com/showthread...hreadid=397077

  #2   Report Post  
BenjieLop
 
Posts: n/a
Default


pothgulla Wrote:
I am a 61 year old beginner !!!

I need help to write a formula to get the following result.

B1=5 then C1 should read 1
B1=5.5 then C1 should read 1.5
B1=6 then C1 should read 2
B1=6.5 then C1 should read 2.5
B1=7 then C1 should read 3
B1=8 then C1 should read 2
B1=8.2 then C1 should read 2.2
B1=8.3 then C1 should read 2.3
B1=8.5 then C1 should read 2.5
B1=9 then C1 should read 3
B1=10 then C1 should read 4

I hope someone could help me out.

Thanks

pothgulla


Construct a table like so:

1. Enter the first set of numbers (5, 5.5, 6 ... 10) starting in Cell
D1, going down until Cell D11.

2. Enter the second set of numbers (1, 1.5, 2 ... 4) starting in Cell
E1, going down until Cell E11

Enter this formula in Cell C1:

=IF(B1=\"\",\"\",VLOOKUP(C1,D1:E11,2,0))


Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=397077

  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

If you set up a table, say in J2:K12, like this:

{5,1;5.5,1.5;6,2;6.5,2.5;7,3;8,2;8.2,2.2;8.3,2.3;8 .5,2.5;9,3;10,4}

where J2 is 5, K2 1, J3 5.5, K3 1, etc., you could use a lookup formula
in C1:

=VLOOKUP(B1,$J$2:$K$12,2,0)

where B1 houses a value like 6.5.

When B1 is 6.6, the formula will yield #N/A, an error.

If you use the following formula in C1:

=VLOOKUP(B1,$J$2:$K$12,2,1)

the result would be 2 with B1 = 6.6.

pothgulla wrote:
I am a 61 year old beginner !!!

I need help to write a formula to get the following result.

B1=5 then C1 should read 1
B1=5.5 then C1 should read 1.5
B1=6 then C1 should read 2
B1=6.5 then C1 should read 2.5
B1=7 then C1 should read 3
B1=8 then C1 should read 2
B1=8.2 then C1 should read 2.2
B1=8.3 then C1 should read 2.3
B1=8.5 then C1 should read 2.5
B1=9 then C1 should read 3
B1=10 then C1 should read 4

I hope someone could help me out.

Thanks

pothgulla



--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #4   Report Post  
Dodo
 
Posts: n/a
Default

pothgulla wrote in
:


I am a 61 year old beginner !!!


And I'm even extinct!

I need help to write a formula to get the following result.

B1=5 then C1 should read 1
B1=5.5 then C1 should read 1.5
B1=6 then C1 should read 2
B1=6.5 then C1 should read 2.5
B1=7 then C1 should read 3
B1=8 then C1 should read 2
B1=8.2 then C1 should read 2.2
B1=8.3 then C1 should read 2.3
B1=8.5 then C1 should read 2.5
B1=9 then C1 should read 3
B1=10 then C1 should read 4


Formula in C1:

=IF(B1<8,B1-4,B1-6)


--

It is I, DeauDeau
(Free after monsieur Leclerc in 'Allo, 'allo)
  #5   Report Post  
pothgulla
 
Posts: n/a
Default


Thank you very much.

I am very grateful for all the help. I truly am beginner and I am
trying to make an excel spreadsheet. I do this mostly by trial and
error as I like to understand the programme.

Thanks

pothgulla


--
pothgulla
------------------------------------------------------------------------
pothgulla's Profile: http://www.excelforum.com/member.php...o&userid=26431
View this thread: http://www.excelforum.com/showthread...hreadid=397077

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
Why does Excel show a formula in ONE cell ? edpaul Excel Discussion (Misc queries) 1 August 12th 05 07:29 PM
Excel CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"