We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel Formula Question

Options
2»

Comments

  • jamesblue
    jamesblue Posts: 52 Forumite
    Lil306 wrote: »
    Think this may work
    =IF(COUNTIF(B:B,B2)>1,"More than 1 date","Only 1 day")
    
    Basically, it checks the cell range B:B (dates entered being in column b) and looks to see how many times the entry from cell B2 appears in that range, the formula than says if that date appears >1 time, then "more than 1 day worked", otherwise if it appears only once then "only 1 day worked"

    Does that help, formula can then be replicated down the sheet?

    EDIT - Attached picture, probably easier to explain looking at it than typing it.
    examplecode.jpg


    Thanks for you help but just worked out a better way, it is using the frequency function, see the following

    =SUM(IF(FREQUENCY(A1:A10,A1:A10)>0,1))

    It works a treat.


    Thanks for all your help, that was a real brain teaser.
  • Lil306
    Lil306 Posts: 1,692 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    NP, always like helping :)

    P.S Use the [code] tag, it's better for hiding those damn angel faces lol
    Owner of andrewhope.co.uk, hate cars and love them

    Working towards DFD

    HSBC Credit Card - £2700 / £7500
    AA Loans - (cleared £9700)
  • jamesblue
    jamesblue Posts: 52 Forumite
    Lil306 wrote: »
    NP, always like helping :)

    P.S Use the [code] tag, it's better for hiding those damn angel faces lol

    Yeah thanks, i never released until i posted it.

    Thanks again
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.8K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.8K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.8K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.