+ Reply to Thread
Results 1 to 5 of 5

Help with an excel formula

  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    7

    Help with an excel formula

    Hi All,

    I'm trying to make a spreadsheet at work and attached is a basic version of what i'm trying to do. Mainly concentrating on tab "sheet 2" this will be a log sheet for recording invoice numbers paid against agency staff members.
    Col A = staff ID number. I have used the data validation tool/ list so we can select any of the staff ID numbers from the first tab "sheet 1"in column A
    Col B = Weekending dates (sundays) and as above I have currently created a list you can select from from the first tab using row 2
    Col C = this automatically selects the surname to match the staff ID number from tab 1
    Col D = we will type in the invoice number
    Col E = the date we sent this to accounts payable to process and pay the invoice

    Basically what I am trying to do is be able to create a list to log the invoices I approve which containing what the invoice number is, who the payment relates to and what week ending the payment covers.

    What I'm stuck with is I need the spreadsheet to some how alert me if I am entering a staff ID number and a W/E date which has already been entered before. As with the attachment rows 7 and 8 on tab 2 both contain staff ID 1 (smith) with 2 invoice numbers containing the same w/e date. Is there some sorta way I can have a spreadsheet that will highlight any rows that have identical data in columns A and B?

    Also not as important I was tring to find a way that on tab 1, could the green section automatically update itself with the invoice number using data from tab 2?

    Any help will be well appreciated!!

    cheers shane
    Attached Files Attached Files
    Last edited by Shane21882; 12-01-2011 at 11:29 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Help with an excel formula

    Use Conditional Formatting
    Try

    =(SUMPRODUCT((A$4:A4=A5)*(B$4:B4=B5))<>0)

    and format as required for your highlight
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Help with an excel formula

    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 on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST

  4. #4
    Registered User
    Join Date
    11-30-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with an excel formula

    Brill thats done the trick!! cheers

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Help with an excel formula

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore Moderators' or Administrators' requests - note that this includes requests by senior members as well, if you are unclear about their request or instruction then send a private message to them asking for help. Do not post a reply to a thread where a moderator has requested an action that has not been complied with e.g Title change or Code tags...etc

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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