+ Reply to Thread
Results 1 to 3 of 3

how to combine these two formulas?

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    how to combine these two formulas?

    Hi Guys, i'm looking for a way to combine these two formulas I have worked on.

    One was created yesterday using help off this forum which I am grateful for - =IF(BX9="","",MAX(DATE(BW9,1,1),DATE(BW9,1,1)-WEEKDAY(DATE(BW9,1,1),2)+(BX9-1)*7+1))

    and the second is a vlookup - =VLOOKUP(B9,'I:Desktop\[MAD File.xlsx]Feuil1'!$A:$K,11,0)

    The first formula uses the result from the vlookup to create the date, however is there a way where I can combine the two so I can just put them into one cell and copy this down?

    Thanks,

    Sam

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: how to combine these two formulas?

    Which field?

    If BW9

    =IF(BX9="","",MAX(DATE(VLOOKUP(B9,'I:Desktop\[MAD File.xlsx]Feuil1'!$A:$K,11,0),1,1),DATE(VLOOKUP(B9,'I:Desktop\[MAD File.xlsx]Feuil1'!$A:$K,11,0),1,1)-WEEKDAY(DATE(VLOOKUP(B9,'I:Desktop\[MAD File.xlsx]Feuil1'!$A:$K,11,0),1,1),2)+(BX9-1)*7+1))

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: how to combine these two formulas?

    You should be able to shorten your original formula so that it only needs the VLOOKUP twice, i.e. this version

    =IF(BX9="","",DATE(BW9,1,MAX(0,BX9*7-WEEKDAY(DATE(BW9,1,7)))-5)

    ....so you can then have the two BW9 references replaced with your VLOOKUP, i.e.

    =IF(BX9="","",DATE(VLOOKUP(B9,'I:Desktop\[MAD File.xlsx]Feuil1'!$A:$K,11,0),1,MAX(0,BX9*7-WEEKDAY(DATE(VLOOKUP(B9,'I:Desktop\[MAD File.xlsx]Feuil1'!$A:$K,11,0),1,7)))-5)
    Audere est facere

+ 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. Can someone please help me combine 2 formulas??
    By daviddc114 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-12-2013, 09:54 AM
  2. [SOLVED] Using Combine macro to combine multiple worksheets - need to modify to paste formulas
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2012, 09:07 AM
  3. Combine Formulas
    By fang603 in forum Excel General
    Replies: 0
    Last Post: 03-09-2012, 02:13 PM
  4. How do I combine these 2 formulas?
    By Tommy1005 in forum Excel General
    Replies: 1
    Last Post: 02-23-2011, 11:20 AM
  5. Combine 2 formulas
    By Steved in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 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