+ Reply to Thread
Results 1 to 4 of 4

If statment and procv issue

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    portugal
    MS-Off Ver
    Excel 2007
    Posts
    10

    If statment and procv issue

    Hello,
    I am trying to to a simple formula to do this.
    on sheet one i have 3 colums timezone and time and time2, on sheet 2 i have a table with the value of the timezones ex: timezone france 1h timezone germany 2h and so on, what i an strugling to do is a simple formula that if timezone is france it subtracts the the value of that timezone from time and shows that value on time2.

    ex:
    Timezone | Time | Time2
    France | 12:00 | 11:00
    germany | 12:00 | 10:00

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,360

    Re: If statment and procv issue

    Lookup table ...

    1st column "Country" , 2nd column "Time Delta"

    Please Login or Register  to view this content.
    for time2

    =B2-VLOOKUP(A2,$F$1:$G$2,2,0)

    b2 is Time1

    Table in F1:G2

  3. #3
    Registered User
    Join Date
    07-21-2016
    Location
    Discovery Bay, CA
    MS-Off Ver
    Office 2010
    Posts
    17

    Re: If statment and procv issue

    I don't know if this helps, but as I understand it, I believe this does what you want. I just have a simple sum, so I don't know how you want to implement an IF statement.
    Of course, I don't know if you want AM/PM or the 24 hour time. Here you go: =SUM(B2-Sheet2!B2)
    File Attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-23-2011
    Location
    portugal
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: If statment and procv issue

    Quote Originally Posted by JohnTopley View Post
    Lookup table ...

    1st column "Country" , 2nd column "Time Delta"

    Please Login or Register  to view this content.
    for time2

    =B2-VLOOKUP(A2,$F$1:$G$2,2,0)

    b2 is Time1

    Table in F1:G2
    it worked fine many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Using PROCV and PROCH in the same formula wirth referenced cells
    By bbordeira in forum Excel General
    Replies: 1
    Last Post: 04-11-2016, 10:19 AM
  2. [SOLVED] which formula should I use? PROCV or SOMASE or another..
    By stazevedo in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2015, 10:26 AM
  3. Function PROCV with 2 references HELP
    By hallaw81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-23-2014, 01:08 PM
  4. Issue with If and Range statment.
    By vop2311 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2014, 02:05 AM
  5. Replies: 2
    Last Post: 06-06-2012, 10:59 PM
  6. SE and PROCV
    By Birnen in forum Non English Excel
    Replies: 7
    Last Post: 08-12-2010, 12:35 PM
  7. some small ajustment...in procv function.
    By x-plicit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2010, 09:43 AM

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