Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Assigning a # value to a letter in Excel 2007

  1. #1
    MickG's Avatar
    MickG is offline ChatterBox Silver Subscriber
    Join Date
    Jan 1970
    Location
    Gold Coast, Qld
    Posts
    2,737
    Total Downloaded
    0

    Assigning a # value to a letter in Excel 2007

    I really need to do an excle course but until then, can anyone talk me through how I assign different number values to letters in a colum or row. I think I need to use a "countif" formula.

    Essentially I am recording customer sources of business approx 50 entries p/day and will have approx 10-15 sources of business which I intended to assign an individual letter for (example: newspaper ad = N or n, radio ad = R or r) and then at the end of each day, I want another box on my spreadsheet to show me how many "N"s or "R"s i have had for the day and so on and so forth. I can then graph the totals boxes easily.

    Thanks in advance, Mick
    '99 Manual TD5 D2.......heap of money spent on it and it has ended

  2. #2
    Join Date
    Jan 2008
    Location
    Gladstone, Queensland
    Posts
    471
    Total Downloaded
    0
    Countif sounds like the way to go.

    Click on the little fx next to the formula entry bar at the top left of the screen and select countif. This will then show a dialog box on the required arguments.

  3. #3
    p38arover's Avatar
    p38arover is offline Major part of the heart and soul of AULRO.com
    Administrator
    I'm here to help you!
    Gold Subscriber
    Join Date
    Jan 1970
    Location
    Western Sydney
    Posts
    30,714
    Total Downloaded
    1.63 MB
    Yes, as previously stated, COUNTIF will work

    Assuming your data is in column A, rows 1 to 10, this is what you'd have to enter to count the no. of instances of the letter R. Put this formula elsewhere in the spreadsheet.

    =COUNTIF(A1:A10,"r")


    You'll need one instance of the formula for each letter to be counted.
    Ron B.
    VK2OTC

    2003 L322 Range Rover Vogue 4.4 V8 Auto
    2007 Yamaha XJR1300
    Previous: 1983, 1986 RRC; 1995, 1996 P38A; 1995 Disco1; 1984 V8 County 110; Series IIA



    RIP Bucko - Riding on Forever

  4. #4
    Join Date
    Aug 2006
    Location
    Redbank Plains
    Posts
    1,256
    Total Downloaded
    0
    Hey Mick,

    Just call your 'helpdesk' if you need help

    Speak Soon.

  5. #5
    MickG's Avatar
    MickG is offline ChatterBox Silver Subscriber
    Join Date
    Jan 1970
    Location
    Gold Coast, Qld
    Posts
    2,737
    Total Downloaded
    0
    Quote Originally Posted by MickG View Post
    I really need to do an excle course but until then, can anyone talk me through how I assign different number values to letters in a colum or row. I think I need to use a "countif" formula.

    Essentially I am recording customer sources of business approx 50 entries p/day and will have approx 10-15 sources of business which I intended to assign an individual letter for (example: newspaper ad = N or n, radio ad = R or r) and then at the end of each day, I want another box on my spreadsheet to show me how many "N"s or "R"s i have had for the day and so on and so forth. I can then graph the totals boxes easily.

    Thanks in advance, Mick
    Quote Originally Posted by stikman View Post
    Hey Mick,

    Just call your 'helpdesk' if you need help

    Speak Soon.
    Yeah was going to but you'll start charging me soon Both foz.in.oz and P38arover have sorted me out.....wish I knew about this gem a few spreadsheets back I really should do a course soon but hey, AULRO always comes through with the goods when you need it.

    Thanks again guys........rest assured there will be plenty more Excel questions to come in the future

    Aye, Mick
    '99 Manual TD5 D2.......heap of money spent on it and it has ended

  6. #6
    dmdigital's Avatar
    dmdigital is offline OldBushie Vendor

    Gold Subscriber
    Join Date
    Jun 2006
    Location
    Arnhem Land, NT
    Posts
    8,492
    Total Downloaded
    0
    Quote Originally Posted by p38arover View Post
    Yes, as previously stated, COUNTIF will work

    Assuming your data is in column A, rows 1 to 10, this is what you'd have to enter to count the no. of instances of the letter R. Put this formula elsewhere in the spreadsheet.

    =COUNTIF(A1:A10,"r")


    You'll need one instance of the formula for each letter to be counted.
    Change the formula of Ron's to read

    =COUNTIF(UPPER(A1:A10),"R")

    Should work and translates all letters to uppercase. I haven't got Excel at home any more so can't test it.
    MY15 Discovery 4 SE SDV6

    Past: 97 D1 Tdi, 03 D2a Td5, 08 Kimberley Kamper, 08 Defender 110 TDCi, 99 Defender 110 300Tdi[/SIZE]

  7. #7
    p38arover's Avatar
    p38arover is offline Major part of the heart and soul of AULRO.com
    Administrator
    I'm here to help you!
    Gold Subscriber
    Join Date
    Jan 1970
    Location
    Western Sydney
    Posts
    30,714
    Total Downloaded
    1.63 MB
    The data doesn't need conversion to uppercase for the function to work. I tested it.

    =COUNTIF(A1:A10,"r") works with upper or lower case data.

    Regrettably, COUNTIF(UPPER(A1:A10),"R") doesn't work. I suspect it's because you can't use the UPPER function on a range.
    Ron B.
    VK2OTC

    2003 L322 Range Rover Vogue 4.4 V8 Auto
    2007 Yamaha XJR1300
    Previous: 1983, 1986 RRC; 1995, 1996 P38A; 1995 Disco1; 1984 V8 County 110; Series IIA



    RIP Bucko - Riding on Forever

  8. #8
    dmdigital's Avatar
    dmdigital is offline OldBushie Vendor

    Gold Subscriber
    Join Date
    Jun 2006
    Location
    Arnhem Land, NT
    Posts
    8,492
    Total Downloaded
    0
    Quote Originally Posted by p38arover View Post
    The data doesn't need conversion to uppercase for the function to work. I tested it.

    =COUNTIF(A1:A10,"r") works with upper or lower case data.

    Regrettably, COUNTIF(UPPER(A1:A10),"R") doesn't work. I suspect it's because you can't use the UPPER function on a range.
    Thanks Ron. I think I must have known this, but like I said, couldn't test it. Did realise COUNTIF wasn't case dependant.
    MY15 Discovery 4 SE SDV6

    Past: 97 D1 Tdi, 03 D2a Td5, 08 Kimberley Kamper, 08 Defender 110 TDCi, 99 Defender 110 300Tdi[/SIZE]

  9. #9
    MickG's Avatar
    MickG is offline ChatterBox Silver Subscriber
    Join Date
    Jan 1970
    Location
    Gold Coast, Qld
    Posts
    2,737
    Total Downloaded
    0
    Thanks again guys, yes tested with upper and lower case and formula works perfectly.

    Appreciate everyone's time and input, Mick
    '99 Manual TD5 D2.......heap of money spent on it and it has ended

  10. #10
    MickG's Avatar
    MickG is offline ChatterBox Silver Subscriber
    Join Date
    Jan 1970
    Location
    Gold Coast, Qld
    Posts
    2,737
    Total Downloaded
    0
    Next question

    How do I create a rule so that when a particular cell (calculating %) goes over say 25% for example, the figure displayed in said cell turns red or is highlighted in some way? I would also like to apply this rule to a cell calculating $ so when the cell calculates greater than a certain number it displays in red or is highlighted in some way?

    Thanks again in advance Mick

    Edit: Or, how do I add a permanent horizontal line on a graph (floor or ceiling limit if you like) so that when my figures are graphed I have an instant visual of a value being over or under floor or ceiling limit respectively?
    '99 Manual TD5 D2.......heap of money spent on it and it has ended

Page 1 of 2 12 LastLast

Bookmarks

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 AULRO.com ONLY!
Search All the Web!