+ Reply to Thread
Results 1 to 7 of 7

Adding another IF statement

Hybrid View

andy2707 Adding another IF statement 09-17-2019, 03:35 AM
PaulM100 Re: Adding another IF... 09-17-2019, 03:39 AM
Pepe Le Mokko Re: Adding another IF... 09-17-2019, 03:40 AM
andy2707 Re: Adding another IF... 09-17-2019, 03:56 AM
PaulM100 Re: Adding another IF... 09-17-2019, 04:32 AM
andy2707 Re: Adding another IF... 09-17-2019, 04:38 AM
andy2707 Re: Adding another IF... 09-17-2019, 05:33 AM
  1. #1
    Registered User
    Join Date
    09-17-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    Office365
    Posts
    9

    Adding another IF statement

    Hi there,

    If I am duplicating a post, I am sorry, there are so many on here and I do not know what words to search with

    I am simply using a VLookup, but am stuck

    =IF('datasheet'!$L2=1,VLOOKUP($A5,'datasheet'!$A$2:$T$500,14,0),0)

    The reason for the IF, is that there are two data sets I want to refer to based on L2.

    Where I need help is that I need to edit the above formula so that the output also looks at the month of each row which is 'datasheet'!D2:D500

    Hope this make sense???
    Last edited by andy2707; 09-17-2019 at 05:32 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Adding another IF statement

    The vlookup should look at the month or the if? also, would be helpful to upload a sample. To upload - Go Advanced - Manage Attachments -
    Click the * to say thanks.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,622

    Re: Adding another IF statement

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    09-17-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    Office365
    Posts
    9

    Re: Adding another IF statement

    I have uploaded a sample. In cleaning the sensitive data, it has given a #Ref on the summary sheet, but hopefully you will at least understand what I am asking ??

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Adding another IF statement

    You still haven't told us what you are trying to achieve and where the month criteria should go

  6. #6
    Registered User
    Join Date
    09-17-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    Office365
    Posts
    9

    Re: Adding another IF statement

    Referring to the summary sheet, I want to make 3 tables, one per month.

    The current formula just reads every row of the data sheet, I would like each table (per month) to filter the results based on the chosen month.. does that make sense?

    so hotel 1 and cell b5, I would like the return value to just show bookings for hotel 1 in june, then cell R5 will be the just for July....

    So i try to ask how should the formula be written? perhaps the combination of the IF and VLookup is not the best, I just don't know

  7. #7
    Registered User
    Join Date
    09-17-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    Office365
    Posts
    9

    Re: Adding another IF statement

    I apologize, I have realized I can use SUMPRODUCT instead of the original formula

+ 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] Adding an IF statement into an existing IF OR statement
    By Kogen in forum Excel General
    Replies: 4
    Last Post: 09-11-2018, 11:57 AM
  2. [SOLVED] Adding OR statement into If statement
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2016, 08:31 AM
  3. Adding CountIf Statement within If/ElseIf Statement
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2014, 05:09 AM
  4. Help adding an IF statement?
    By jawnmallon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2013, 09:13 PM
  5. [SOLVED] Adding an if statement to vba and adding 1 onto the cell value
    By Nicola13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 05:13 AM
  6. Adding an OR statement for a value
    By garopro in forum Excel General
    Replies: 4
    Last Post: 12-07-2011, 05:30 PM
  7. IF Statement + adding
    By burblecut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2008, 11:50 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