+ Reply to Thread
Results 1 to 4 of 4

assign a value to x

Hybrid View

167notout assign a value to x 02-25-2013, 05:28 PM
JBeaucaire Re: assign a value to x 02-25-2013, 05:33 PM
167notout Re: assign a value to x 02-25-2013, 05:51 PM
JBeaucaire Re: assign a value to x 02-25-2013, 07:29 PM
  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    4

    assign a value to x

    Hi
    I need help! I need to use x to mark attendance in particular cells for Mon- Fri. Each time the attendance box is marked with an x for each day I need it to add £5 to a running total at the end of the row. For example, if someone was to attend 3 days, Mon, Wed, Fri then it would show a total o £15 at the end of that week just by entering an "x" in the relevnt days.
    I'm a bit of a novice with formulas and so on so any brevity in your answers would be very helpful.
    Many Thank

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: assign a value to x

    Use a COUNTIF() formula to count how many "X" values are in a range, then multiply that 5.

    =COUNTIF(A2:G2, "x") * 5
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-25-2013
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: assign a value to x

    Thank you so very much, that's exactly wha I needed!
    Legend

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: assign a value to x

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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