+ Reply to Thread
Results 1 to 5 of 5

Need help with a possible easy formula and to either MATCH or VLOOKUP or something similar

  1. #1
    Registered User
    Join Date
    01-14-2020
    Location
    Texas
    MS-Off Ver
    Excel for Office 365
    Posts
    19

    Lightbulb Need help with a possible easy formula and to either MATCH or VLOOKUP or something similar

    Hello All!!,

    I have what I think may be an easy formula request. I just am not able to figure it out. (please see the attached sheet to follow along)

    The cell layout must stay as shown for sheet 1, so unfortunately there may be an easier approach if I move cells and columns around but it can't be done.

    Here is the scenario. Sheet one provides a quick summary of status for a specific room that is updated on Sheet 2. It shows the total number of machines that are OFFLINE and are in the yellow cells. The blue cells have other info that must be fixated there, but I just changed the color to show that only the yellow cell is required.

    So if I were to just do a formula of one cell = another and drag it across as we update per day, Sheet one doesnt reflect that as i copy a new block of info into the next day as we begin. Is there a formula where Sheet one MATCHES the date on SHEET 2 to give the number of machines OFFLINE?

    I am trying to make it able so that I can copy paste the 4 columns in SHEET 1 into the next 4 columns to keep the formula working. IF this is possible this would be so much appreciated!!

    Thank you all!!
    Attached Files Attached Files
    Last edited by bcastle; 01-19-2020 at 05:41 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need help with a possible easy formula and to either MATCH or VLOOKUP or something sim

    You can put this formula in B5 of Sheet1:

    =COUNTIF(INDEX(Sheet2!$B:$Z,0,MATCH(B$4,Sheet2!$B$4:$Z$4,0)),"OFFLINE")

    and then you can copy it into F5, J5 etc. to pick up the data according to the dates on row 4.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-14-2020
    Location
    Texas
    MS-Off Ver
    Excel for Office 365
    Posts
    19

    Re: Need help with a possible easy formula and to either MATCH or VLOOKUP or something sim

    Pete!!!

    This works perfectly. If possible, could I complicate it further. (The formula you provided will work perfectly) but I wanted to see if in the future depending on the data, I could expand on the sheet.

    I have attached an edited spreadsheet that includes more info/changes for future progress. So, initial issue was with one room, but what if we have two rooms with different sets of MACHINES? In the new spreadsheet, on SHEET 1, the yellow cell is for ROOM1 and green cell is for ROOM 2. On SHEET 2, how could I capture when MACHINES are anything but ONLINE. I included HOLD on SHEET 2. SO, for example:

    On 1/21, SHEET 1 would indicate ROOM1 with zero and ROOM2 would indicate 1. Since one MACHINE is on HOLD.

    Same thing though with the dates. Just as you expertly included, I could copy and paste into the next four columns and the information would be captured.

    You've done brilliantly with the first request. If possible, could you help with this one as well?

    THANK YOU so much for the other formula!!!! This is already further than I could of gotten.

    Thank you PETE!!!
    Attached Files Attached Files
    Last edited by bcastle; 01-19-2020 at 01:43 PM. Reason: Including Excel sheet

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need help with a possible easy formula and to either MATCH or VLOOKUP or something sim

    You can use this formula in B5 of Sheet1:

    =COUNTIFS(INDEX(Sheet2!$B$5:$Z$10,0,MATCH(B$4,Sheet2!$B$4:$Z$4,0)),"<>ONLINE")

    and this in cell C5:

    =COUNTIFS(INDEX(Sheet2!$B$15:$Z$18,0,MATCH(B$4,Sheet2!$B$4:$Z$4,0)),"<>ONLINE")

    Note that "<>ONLINE" means not equal to "ONLINE", and the only other differences relate to the actual range references (shown in red). Note also that the ranges used go out to column Z, so you will need to change this if you have more data.

    You can copy these two cells across into F5:G5, J5:K5, N5:O5, etc.

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Registered User
    Join Date
    01-14-2020
    Location
    Texas
    MS-Off Ver
    Excel for Office 365
    Posts
    19

    Re: Need help with a possible easy formula and to either MATCH or VLOOKUP or something sim

    Pete!!!!

    Simply Amazing!!!! Just simply AMAZING!

    Thank you for all the assistance.

+ 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. Vlookup or match or something similar
    By KarenitaEl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2019, 08:58 PM
  2. Trying to use Vlookup with Match, or similar to find value
    By mark1955 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2018, 12:26 AM
  3. [SOLVED] VLOOKUP paste all data from that row to destination if match [easy for most]
    By lougs7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-24-2017, 03:20 PM
  4. [SOLVED] Problem with an easy formula VLOOKUP doesnt match
    By XLalbania in forum Excel General
    Replies: 11
    Last Post: 03-05-2017, 06:09 PM
  5. VLookup/Index,Match for Similar values
    By hpatel517 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-21-2015, 06:35 AM
  6. [SOLVED] Index Match Vlookup Array or Similar
    By djm601 in forum Excel General
    Replies: 3
    Last Post: 10-27-2014, 04:39 PM
  7. [SOLVED] Using VLOOKUP to match similar text?
    By lrb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-05-2005, 02:06 PM

Tags for this Thread

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