+ Reply to Thread
Results 1 to 10 of 10

Need cell A2 to be this number if A1 is this number

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need cell A2 to be this number if A1 is this number

    Hi Guys,

    Was wondering if the was a function or formula which did this.

    If cell A1 is this number 811 then A2 will be 8
    If cell A1 is this number 812 then A2 will be 9
    If cell A1 is this number 813 then A2 will be 10.5
    If cell A1 is this number 814 then A2 will be 10.25

    Cell A1 would be a rota number (814) and cell A2 would be hours (10.25). Need to be 10.25 hrs not 10 hrs 15 minutes.

    So if I typed 814 in cell A1 then the result for A2 would be 10.25

    Hope that's clear

  2. #2
    Registered User
    Join Date
    06-19-2012
    Location
    N/A
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Need cell A2 to be this number if A1 is this number

    Try this:

    Please Login or Register  to view this content.
    Hope this helps.
    If I have helped, please click the star below.

  3. #3
    Registered User
    Join Date
    06-25-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need cell A2 to be this number if A1 is this number

    Tried that after changing the cell ref
    =IF(E119=811,8,IF(E119=812,9,IF(E119=813,10.5,IF(E119=814,10.25))))

    Returns 0.00


  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need cell A2 to be this number if A1 is this number

    I advice VLookup (see example).
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    06-19-2012
    Location
    N/A
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Need cell A2 to be this number if A1 is this number

    If cell A1 is this number 811 then A2 will be 8
    If cell A1 is this number 812 then A2 will be 9
    If cell A1 is this number 813 then A2 will be 10.5
    If cell A1 is this number 814 then A2 will be 10.25

    Might have something to do with how your cells are formatted, I guess. Try:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-25-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need cell A2 to be this number if A1 is this number

    Quote Originally Posted by oeldere View Post
    I advice VLookup (see example).
    That worked Many thanks

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need cell A2 to be this number if A1 is this number

    Notice you had 10,50 and 10,25 put in the wrong order.

    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?
    If you have (other) questions, just ask.

  8. #8
    Registered User
    Join Date
    06-25-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need cell A2 to be this number if A1 is this number

    I was thanking you oeldere.

    Sorry, but I thought the quote made that clear.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need cell A2 to be this number if A1 is this number

    Yes it did, but i notice it later on (and changed the text)

  10. #10
    Registered User
    Join Date
    06-23-2012
    Location
    chongqing,China
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Need cell A2 to be this number if A1 is this number

    try this cell A2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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