+ Reply to Thread
Results 1 to 43 of 43

Excel Formula help

  1. #1
    Registered User
    Join Date
    08-18-2005
    Posts
    2

    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

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by pothgulla
    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
    Houston, TX

  3. #3
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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. #4
    Registered User
    Join Date
    08-18-2005
    Posts
    2

    Excel Formula help

    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

  5. #5
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  6. #6
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  7. #7
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  8. #8
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  9. #9
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  10. #10
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  11. #11
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  12. #12
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  13. #13
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  14. #14
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  15. #15
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  16. #16
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  17. #17
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  18. #18
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  19. #19
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  20. #20
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  21. #21
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  22. #22
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  23. #23
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  24. #24
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  25. #25
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  26. #26
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  27. #27
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  28. #28
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  29. #29
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  30. #30
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  31. #31
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  32. #32
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  33. #33
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  34. #34
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  35. #35
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  36. #36
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  37. #37
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  38. #38
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  39. #39
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  40. #40
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  41. #41
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

  42. #42
    Aladin Akyurek
    Guest

    Re: Excel Formula help

    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.

  43. #43
    Dodo
    Guest

    Re: Excel Formula help

    pothgulla <[email protected]> wrote in
    news:[email protected]:

    >
    > 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)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1