+ Reply to Thread
Results 1 to 10 of 10

Cant work out the correct formula to use

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    Lincoln, UK
    MS-Off Ver
    Office 365
    Posts
    11

    Cant work out the correct formula to use

    Hi all,

    I hope someone is able to help me with my issue as I am scratching my head on the correct formula to use. I am trying to make a spreadsheet that can keep track of my freelance invoices. In one column I have the date in dd/mm/yyyy format. In another column I have whether a per diem (daily allowance) needs to be claimed. This is either just a simple Yes or No in a drop down tab.

    What I would like to achieve is in a separate table if I input the date range, it will determine how many per diems should be paid and make total in separate column for whats owed.

    Thanks in advance for any assistance that can be offered.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Cant work out the correct formula to use

    Hi there... and welcome to the Excel Forum.Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Cant work out the correct formula to use

    Hello there, Do you mean if you have 27/04/15 in column A1 and Yes/No in Cell B1.

    Now if you enter the date range say for 27/04/15 to 30/04/15 so you should get to know how many Yes/No irrespective of these dates?

    If yes, then you can use Countifs to get the count, if wanted to pick the sum of the daily allowance, then can use SUMIFS.

    Please confirm, if this is the case.
    Thanks
    Nisha Dhawan


    If you like my answer please click on * Add Reputation
    "If you can dream it, You can do it "

  4. #4
    Registered User
    Join Date
    04-27-2015
    Location
    Lincoln, UK
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Cant work out the correct formula to use

    Hi Nisha,

    Yes so on column 1 I have a range of dates and in column 2 I have whether a per diem has been accrued. So what I am trying to work out is how many yes/no there has been for a selected date range.

    So CountIF is the formula I should be using.

    @Glenn I have uploaded an example xls for you to see. So as you can see there is a separate table to the right of the main info. I have two cells to enter the date range. Then using DATEDIF formula to count how many days*my contract rate to work out how much is to be invoiced. So all I need to work out is how many per diems "yes" have been accrued for that selected date range.

    Thanks for you help.

    James
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Cant work out the correct formula to use

    Hi there. Try this.

    =COUNTIFS(A:A,">="&$H$2,A:A,"<="&$H$3,C:C,"Yes")

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Cant work out the correct formula to use

    I have just noticed that your thread title isn't very meaningful. Please change it to something that conveys what you want (think in terms of Google searches).

  7. #7
    Registered User
    Join Date
    04-27-2015
    Location
    Lincoln, UK
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Cant work out the correct formula to use

    Hi Glenn,

    That formula was perfect. Once I had edited with the actual cells in use it works. Sorry about the thread title. I just couldn't work out a suitable title to convey what I was actually trying to achieve.

    Thanks Once again.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Cant work out the correct formula to use

    Quote Originally Posted by jwardlow84 View Post
    I just couldn't work out a suitable title to convey what I was actually trying to achieve.
    How about this...

    Count dates within a range that meet a condition

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Cant work out the correct formula to use

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  10. #10
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Cant work out the correct formula to use

    Hi jwardlow,

    It seems that you have got the solution for your query so would request you to please mark this thread as SOLVED and say thanks to people who helped you by adding *Add Reputation.

    @Je suis Charlie - Sorry for posting it as the user has already got the answer for the query so there is now no need to make the required changes (as per my thinking) instead that we can ask OP to mark this thread as SOLVED now.

+ 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: 15
    Last Post: 11-25-2014, 08:14 AM
  2. Replies: 6
    Last Post: 10-09-2013, 03:08 PM
  3. Replies: 2
    Last Post: 07-11-2006, 11:15 PM
  4. I want to correct a #div/0! error but the IF function doesnt work
    By Traceyb in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. I want to correct a #div/0! error but the IF function doesnt work
    By Traceyb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-21-2005, 11: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