+ Reply to Thread
Results 1 to 7 of 7

get information from a sheet with various parameters for a specifique line

  1. #1
    Registered User
    Join Date
    01-13-2018
    Location
    ban tha heua
    MS-Off Ver
    excel 2007
    Posts
    4

    get information from a sheet with various parameters for a specifique line

    Good Morning everyone

    English is not my first language so in advance please do excuse me if I'm not fully understandable =)

    here is my problem, half solved :

    I have a workbook with many sheets, which includes all the information of the guests and all the transaction of an hotel.

    in a first sheet there is name, nationality, room number, check in/out date.... for every guest over a month
    One a second sheet, i have the bill from our restaurant with include the following details : room number, date, price, payment type....

    Recently my dear and beloved boss asked me the repartitions of the sales by nationality and market segment.

    So theoretically it should be possible to do some Vlookup and other, with the complication that the date of sale should be included between the check in and check out date for a particular room. So far, my tentative of using Vlookup have been solved by a #N/A

    In another hand i had a result with a IF/AND formula as following
    =IF(AND($A8>='Reservation Sumery'!$K$4:$K$691,'FB bill Resume'!$A8<'Reservation Sumery'!$L$4:$L$691,'FB bill Resume'!$B8='Reservation Sumery'!$J$4:$J$691),'Reservation Sumery'!$M$4:$M$691,"")

    But there is a problem. Lets say that i have 4 lines (1,2,3 and 4) of bill restaurant with the same date and room number. The formula works ONLY if the information about this room are in same line on the other sheet

    So if the room A is on the line n"2 of the reservation sumery, and the bills of this room are on the line n"1,2,3 and 4 of the FB bill resume sheet, i get a result only for the line number 2...

    Thanks in advance
    Theo

  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
    30,866

    Re: get information from a sheet with various parameters for a specifique line

    Attach a sample workbook (not image).

    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.

  3. #3
    Registered User
    Join Date
    01-13-2018
    Location
    ban tha heua
    MS-Off Ver
    excel 2007
    Posts
    4

    Re: get information from a sheet with various parameters for a specifique line

    Dear JohnTopley

    Thank you for time and consideration!

    here are a sample of what i need, hope it will help you to help me! =)
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,984

    Re: get information from a sheet with various parameters for a specifique line

    Hello OM.NAMNGUM and Welcome to Excel Forum.
    If I understand correctly the following array entered formula* may do what you want.
    1) Select cell G4 on the FB bill Resume sheet,
    2) Paste the following into the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *3) Simultaneously press the Ctrl, Shift and Enter keys,
    4) Drag the fill handle down to cell G10.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    01-13-2018
    Location
    ban tha heua
    MS-Off Ver
    excel 2007
    Posts
    4

    Re: get information from a sheet with various parameters for a specifique line

    Hello JeTeMc

    Thank for your help, its working perfectly, problem solved!

    If you ever come to Laos, come to the Sanctuary Nam Ngum Beach resort, i own you some drinks =)

    Theo

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,978

    Re: get information from a sheet with various parameters for a specifique line

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,984

    Re: get information from a sheet with various parameters for a specifique line

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. If I am ever in Laos I will certainly look forward to a visit at the Sanctuary Nam Ngum Beach resort. I hope that you have a blessed day.

+ 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. Replies: 13
    Last Post: 06-13-2017, 09:49 AM
  2. [SOLVED] How would I include first line information in subtotal line?
    By LMunoz in forum Excel General
    Replies: 2
    Last Post: 06-08-2015, 05:53 PM
  3. Pull Information from a query based on parameters
    By ssexton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2013, 04:10 PM
  4. Macro to Pull information from one Excel Sheet based on information in another sheet
    By IwannabanExcelGod in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 02:11 PM
  5. excel 2007 command line parameters
    By joethall in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-21-2010, 01:52 PM
  6. Complete list of Excel Command line switches/parameters
    By NHRunner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 01:35 PM
  7. Find the 4 parameters in order to design one line
    By skimer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2006, 06:10 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