You are here:

Advertisement

QUESTION: I am trying to create a formula that recognizes the contents of a column

such as credit card, cash,check etc....

Total Cash: calculates the sum of every line marked cash

Total Credit: calculates the sum of every line marked credit

Etc:

ANSWER: Jessica:

It sounds like you need the SUMIF function. SUMIF works like this:

=SUMIF(range, criteria, sum range)

For example, lets say column A has the words "Credit" and "Cash". Column B has the values you want to sum. You would use a formula like this:

=SUMIF(A:A,"Credit",B:B)

For Cash you would just change the word inside the quotes to cash instead of credit.

Please let me know if you have any further questions. In addition, if you are satisfied with my response, please remember to donate.

Nathan

---------- FOLLOW-UP ----------

QUESTION: I am new to Excel. Thank you for your assistance with my last question! I will be sure to donate. I have one additional question

I am trying find the most prominent transaction method

example

Column E: Credit Card, CASH, Check

The average is Credit Card

ANSWER: Jessica:

I am going to assume, by "most prominent", you mean the most common (each row treated as one equal value). Alternatively, you could mean the one with the largest total payments (obtain a total of each payment type and then show the one with the largest total).

These type of "summary in one cell" type of formulas can be very complex. If you had the following in column A, rows 1 through 15...

Credit Card

Cash

Check

Credit Card

Cash

Check

Credit Card

Cash

Check

Credit Card

Cash

Check

Check

Check

Credit Card

The most prominent is "Check". In order to obtain this information you would use the following function:

=INDEX(A1:A15,MODE(MATCH(A1:A15,A1:A15,0)))

This is an array function. In order to enter an array function, you must do so by confirming with CTRL-SHIFT-ENTER instead of simply ENTER.

A properly entered array function will look like this (with braces surrounding it... but you don't actually type the braces):

{=INDEX(A1:A15,MODE(MATCH(A1:A15,A1:A15,0)))}

If you don't enter as an array function, it will probably still work... but it might not work in all situations.

---------- FOLLOW-UP ----------

QUESTION: I am trying to create a formula if

Column D = "Crest" then Column B -the invoice amount entered should subtract $40.00 from the amount entered

then if Column D = "Credda" the invoice amount entered should subtract $40 and then multiply by 1%

Thanks for your help

Jessica:

This would be done with an IF function. For example, the following IF function populates another column with the requirements you specified:

=IF(D2="Crest",B2-40,IF(D2="Credda",(B2-40)*1.01,"Invalid Type"))

Assuming the above formula is placed in E2, then you would simply copy the formula down through column E.

- Ask a Question

Rating(1-10) | Knowledgeability = 10 | Clarity of Response = 10 | Politeness = 10 |

Comment | No Comment |

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

Answers by Expert:

Microsoft Excel questions related to advanced formulas, Pivot Tables, filters, forms, graphs, and just about anything else (

I have been using spreadsheets since Lotus 1-2-3 was released. **Education/Credentials**

Certified Public Accountant (CPA)