+ Reply to Thread
Results 1 to 10 of 10

needing an if and an and

  1. #1
    Registered User
    Join Date
    12-04-2008
    Location
    united States
    Posts
    5

    needing an if and an and

    i need to create an IF and an And formula for the debit columns and credit columns of an income statement and a balance sheet on a 10 column worksheet. The formula for each column will be slightly different but will be the same for every row in the respective column. the formulas must check to see if the account number is associated with an asset, liability, or owner's equity. this will determine if it is a credit or debit balance. my basic goal is to enter all values in unadjusted trial balance and adjustments, while all the other columns fill in automatically.Any help would be greatly appreciated. Thank You
    Attached Files Attached Files
    Last edited by badger111; 12-04-2008 at 07:41 PM.

  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
    You'll need to post sample workbook with your columns laid out and labeled the way you want and some sample data in there so we can see what you're doing.

    And based on Forum Rules, you should adjust the title of your original thread to indicate this is an IF, AND, LOOKUP query.
    _________________
    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
    12-04-2008
    Location
    united States
    Posts
    5

    Smile

    Thank you JBeaucaire, this is my first time on here so i appreciate any advice.
    On my original request i have posted the new thread title and uploaded the 10 column worksheet i am working on. I will cell reference all the financial statements on my own but i cannot figure out the formula for the debit and credits columns in the income statement and the balance sheet. Any help you can provide would be greatly appreciated.

  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
    With no data or sample answers, I'm not sure how you want us to figure it out, either.

    You don't need to show us formulas, just some reasonable amount of sample data with real answers you've manually figured out. Highlight those cells to point out where you want to automate things, and feel free to type notes nearby to explain your thinking. We'll look at it from there.

    Changing all the data to 100 actually makes it impossible (almost) to follow any sort of logic. You can leave real numbers in there since you aren't sharing any customer names and such.

  5. #5
    Registered User
    Join Date
    12-04-2008
    Location
    united States
    Posts
    5
    JB i understand your response but the 100"s are nonrelevant. you can insert any data you like. maybe this will help clarify what i need. i need the exact same formula in the Income Statement debit column for each and every row. The same goes for the other three columns, Income statement credit column, balance sheet debit column, and the balance sheet credit column. Each column should have a slightly different formula but within a column the formula must be the same for all line items. My balance sheet and income statement columns in the 10 column worksheet must include an IF and an AND. this formula must check to see if the account number begins with the numbers associated with an asset, liability, or owner's equity and check to see if the account has a debit or credit balance, to place it in the right column. I hope this helps you in aiding me to solve this problem. again thank you for taking the time to assist me.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    You know that none of your criteria are actually explained, nor demonstrated?

    "Each formula in each column should be slightly different but then the same all the way down"...that describes every spreadsheet I've ever worked on.

    I want to help, but you're not giving examples of what you want and where the data is to accomplish the goal resides. You're just saying "I want it."

    I don't want to waste your time, so if you can't put up some clear completed examples including your desired results, I don't know how to help you. Not enough info.

  7. #7
    Registered User
    Join Date
    12-04-2008
    Location
    united States
    Posts
    5
    JB i know this is probably frustrating to you, it is to me as well. I do not have a set of values to insert in the worksheet. my goal is to be able to record values for each account at the end of the month in the unadjusted trial balance. Also i will insert values that are adjusting. I have a formula in place for the adjusted trial balance. What i can't seem to figure out is the formulas that are needed in the income statement debit and credit columns and the balance sheet debit and credit columns. By having these formulas in place i will cell reference my actual finance statements to autofill from the information on the 10 column worksheet. Is there any other info i can give you to help? Basically i am trying to set it up so that at the end of every month i can plug in the numbers to the unadjusted trial balance and the adjusting entries and the rest of the worksheet will autofill. i hope this helps.

  8. #8
    Registered User
    Join Date
    12-03-2008
    Location
    Miami
    Posts
    4
    Hello,
    I think i know what you are trying to say. But for you to do that, you need to have somewhere (in another sheet or somewhere else in the same sheet) if the accounts in Col B are a Debit or Credit balance.
    PS: You shouldnt have the Acc. Depreciation of your equipment as a Debit Account. And the totals on Col C and D should be the same...Your data seems a bit weird.

  9. #9
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Hard Code

    Heya Badger,
    Suggestion.

    What you need to do is show us what's called a "Hard Code"
    It's when you type in the values you're going to enter, then manually enter the results expected. That lets us find a way to do it through code.

    See the attached example of a hard coded worksheet
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-04-2008
    Location
    united States
    Posts
    5
    i would like to thank everyone who tried to help me but i have the problem solved. using an IF and an AND formula i was able to determine which amount on the adjusted balance sheet went to what column in the income and balance debit and credit column. this is the formula i used for the income debit column. IF(AND(G6>0,A6>400)G6,0) I had to refer to the account numbers to verify which column the amount went into.(A6>400) Very frustrating to figure out but it works for that column all the way down and automatically fills in the appropiate cells. then the other 3 columns have a similar formula but the cell references in the formula are slightly different. Again thanks to all who tried to help.

+ 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