Excel - Number hidden beneath a cell's displayed Text...Possible?

Discussion in 'Mac Apps and Mac App Store' started by jman995x, Feb 21, 2010.

  1. jman995x macrumors regular

    Joined:
    Sep 8, 2007
    #1
    Hello,

    Is there a way to have a cell display text, but behind the text is actually a number figure that I can ask Excel to use in calculations?

    I'll explain what I mean to give you a visual so you'll understand what I'm trying to do.
    I want to create a monthly budget in an Excel spreadsheet.
    I'll have one row for each day of the month, and maybe 3 or 4 columns for in which to put expenditures for each day.

    Let's say on the 4th of the month I have a Visa bill due, I usually put gas in my car and I pick up some Dry Cleaning. I'd like to be able to type Visa, Gas and Dry Cleaning within the row of cells for the 4th, and have the dollar amounts for those expenditures hidden beneath the text. Then I'd do a summation formula in the last column to tabulate all of the hidden dollar amounts to give me a total for that day. This way, I can see a total expenditure figures for that day (in the summation column) and what the money went to, without having to do the spreadsheet the old-fashioned way of putting the Text in one cell and the dollar figures in an adjoining cell (which in this case wouldn't work in a columnar sense since the text cell would have to be either above the dollar cell, thus making the text cell in the previous day's row...or, putting the text in say, cell B2, and the dollars in row B3, and doing the same for multiple charges per day, which would make for a very wide spreadsheet.

    Any suggestions?

    Thanks,

    J.
     
  2. sushi Moderator emeritus

    sushi

    Joined:
    Jul 19, 2002
    Location:
    キャンプスワ&#
    #2
    I'm not sure I follow your concept.

    FWIW, it is possible to hide columns and/or rows. Would that help?

    You could also look at creating a Macro for data entry. Text entry on the 1st worksheet, then on the 2nd worksheet, corresponding values.
     
  3. jman995x thread starter macrumors regular

    Joined:
    Sep 8, 2007
    #3
    Maybe that's what I need to do.

    Here are some screenshots of what I'm trying to do:

    [​IMG]


    [​IMG]
     
  4. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #4
    I'm pretty confident that the answer is no. You can't have two pieces of information entered in the same cell, with one being visible and the other hidden, much less have the hidden bit used in a formula elsewhere. Option 2 is the way to go, whether you like it or not. Sorry.
     
  5. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #5
    You could set up a table and use VLOOKUP to find corresponding values within the table. You can also assign names (VISA) to values (125) and then use the names in formulas. Use your Excel Help function and check out the VLOOKUP formula and research using Names.
     
  6. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #6
    This is probably the best way to go... a macro or VBA is another possibility, depending on what version of Excel you're using.
     
  7. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #7
    Ok, this is different than what the OP asked, which I still don't think you can do. But, perhaps it gets the desired result, and that's cool. It seems to be very close to the "hidden value" the OP is looking for.

    My question, and one I'm sure the OP will have, is using Names, will one only be able to assign one value per word? In other words, if there are multiple VISA bills on the page, would one have to be VISA1 and another VISA2, etc. (for example) to assign different values to them? I assume that would indeed be the case.
     
  8. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #8
    Each name is like a shortcut that points to a cell or range of cells.
     

Share This Page