Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default help with Formulas/Functions

I need help creating two formulas. I'm hoping this can be done with some
variation of a function, such as IF, SUMIF, etc. I'd like to avoid using VBA
if at all possible.

1. For the first formula: if there is an amount in column A, multiply that
amount by 5% and place it in column F

2. Second formula: if the date value in column B is within the current
month, multiply the amount in column A by 40% and place it in column G

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default help with Formulas/Functions

Assuming data running in A2 down

1. In F2:
=IF(ISNUMBER(A2),A2*5%,"")

2. In G2:
=IF(AND(ISNUMBER(A2),TEXT(B2,"mmmyy")=TEXT(TODAY() ,"mmmyy")),A2*40%,"")

Select F2:G2, copy down as far as required
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Candace" wrote:
I need help creating two formulas. I'm hoping this can be done with some
variation of a function, such as IF, SUMIF, etc. I'd like to avoid using VBA
if at all possible.

1. For the first formula: if there is an amount in column A, multiply that
amount by 5% and place it in column F

2. Second formula: if the date value in column B is within the current
month, multiply the amount in column A by 40% and place it in column G

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default help with Formulas/Functions

1. =IF(A1<"",A1*5%,"")

2. =IF(TEXT(B1,"mmm yyyy")=TEXT(TODAY(),"mmm yyyy"),A1*40%,"")
An alternative here is to use an AND with tests on MONTH(B1) and YEAR(B1),
but the TEXT route is probably shorter.
--
David Biddulph

"Candace" wrote in message
...
I need help creating two formulas. I'm hoping this can be done with some
variation of a function, such as IF, SUMIF, etc. I'd like to avoid using
VBA
if at all possible.

1. For the first formula: if there is an amount in column A, multiply that
amount by 5% and place it in column F

2. Second formula: if the date value in column B is within the current
month, multiply the amount in column A by 40% and place it in column G



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Functions & Formulas kathi Excel Worksheet Functions 2 October 11th 07 09:33 PM
Functions and Formulas Stockwell43 Excel Worksheet Functions 5 May 16th 07 12:11 AM
Formulas with if functions???? Ruth Excel Discussion (Misc queries) 3 April 17th 07 04:14 PM
What Formulas or Functions to use??!!! aeiou Excel Discussion (Misc queries) 2 July 27th 05 04:27 AM
Functions and formulas abfabrob Excel Discussion (Misc queries) 4 April 13th 05 08:04 PM


All times are GMT +1. The time now is 05:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"