+ Reply to Thread
Results 1 to 7 of 7

return number based on a value in a specific cell

  1. #1
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    return number based on a value in a specific cell

    Hello everyone!

    I have a work hour sheet where If an employee is on duty "D" on Saturday, Sunday or Holiday day, under "D" should be 0 (zero)/blank cell, if is on duty "D" on the rest of the week (except Holyday day) under "D" should be 8 in order to calculate the work hours in that month in cell B8.

    Thank you!
    Attached Files Attached Files
    Last edited by florin119; 03-19-2022 at 11:39 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: return number based on a value in a specific cell

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: return number based on a value in a specific cell

    Attendence

    AI7=SUMPRODUCT((ISNA(MATCH('Attendence Dashboard'!$C$6:$AG$6,Holiday,0)))*(WEEKDAY('Attendence Dashboard'!$C$6:$AG$6,2)<=5)*(ISNA(MATCH('Attendence Dashboard'!$C7:$AG7,'Attendence Dashboard'!$W$18:$W$19,0)))*('Attendence Dashboard'!$C7:$AG7<>""))*8

    Copy down
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    Re: return number based on a value in a specific cell

    Thank you Fluff13 for your expertise. It works very well! You are a lifesaver!

  5. #5
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    Re: return number based on a value in a specific cell

    Thank you CARACALLA for your expertise. It works very well! You are a lifesaver, twice in one day!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: return number based on a value in a specific cell

    Glad to help & thanks for the feedback.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: return number based on a value in a specific cell

    You are welcome

+ 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] Assistance to return a specific number or result of 2 cell addition
    By CHillFL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2022, 11:54 AM
  2. [SOLVED] Return a specific value if a cell contains only a number
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-22-2016, 11:43 AM
  3. Return Certain Data Based On a Specific Number Needed
    By tms23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2016, 04:13 PM
  4. Return Number of Unique Valued Based On Specific Text
    By ljochmann in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2015, 02:27 PM
  5. [SOLVED] Return a specific date based on another cell
    By karstens in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2015, 05:27 PM
  6. [SOLVED] If specific text is found in cell, then return a number
    By csch123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2013, 05:07 PM
  7. [SOLVED] Search for a number in a table and return data of a specific cell
    By Karaman in forum Excel General
    Replies: 4
    Last Post: 06-30-2006, 10:50 AM

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