5
   

Excel formula needed

 
 
chai2
 
Reply Mon 19 Apr, 2010 02:26 pm
Column A1 through A200 has various dates, anywhere from January 1 of 2005 and the present.

Column B1 through B200 are a listing of percentages, 2%, 3.5%, 8%, etc.

I would like column C to give show the data in column B, IF the date in column A is sometime during 2010

thanks
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 5 • Views: 2,591 • Replies: 22
No top replies

 
View best answer, chosen by chai2
Cycloptichorn
 
  1  
Reply Mon 19 Apr, 2010 02:35 pm
@chai2,
interesting question - I don't know exactly how to do it.

This might help -

http://www.cpearson.com/excel/datetime.htm

Cycloptichorn
chai2
 
  1  
Reply Mon 19 Apr, 2010 02:47 pm
@Cycloptichorn,
ok, cyclo....I've got an idea of how to do it, from reading the microsoft online excel thingie, but I can't seem to get it written correctly.

here's what I'm thinking....

If could be a SUMIF formula, and I could use a dummy column, like column F, which I'd hide. There could be all zeros in column F.

I could say, "add B1 and F1, IF the date in A1 is greater than 12/31/09 and less than 1/1/11"

Or, to avoid making a column F, how would you say "=B1 IF the date in A1 is grater than 12/31/09 or less than 1/1/11"

maporsche
 
  2  
Reply Mon 19 Apr, 2010 02:52 pm
@chai2,
Try this.

=IF(YEAR(A1)=2010,B1,"")

Put that formula in cell C1...or if you put it in another row, change your row numbers.

The format in column A must be in a date format. I can help you convert those if you need help with that too.


I'm sort of an excel guru. Wink
Butrflynet
 
  1  
Reply Mon 19 Apr, 2010 02:53 pm
@chai2,
I have to figure out the Excel syntax to make it do it. I did most of my spreadsheet work in Lotus 123 when I was working in accounting and have to translate what I would have done in Lotus to Excel's syntax. So far, I haven't yet gotten it right in the sample sheet I'm testing it on.

This is the logic you want:

If (Column $ARow? is greater than 1/1/2010)$B1

The dollar symbols are absolute values for the column while the question mark symbol represents the row value for the current row containing the formula. I think that Excel automatically converts the date to a numeric value and can do the simple calculation to see if column a is greater than a specific date in the formula.

I'll work on it a bit more and see if I can get it to work in my spreadsheet and give you the exact formula.
0 Replies
 
Butrflynet
 
  1  
Reply Mon 19 Apr, 2010 02:54 pm
@maporsche,
Yep, that looks good. Let me see if it works in the test sheet.
0 Replies
 
chai2
 
  1  
Reply Mon 19 Apr, 2010 02:56 pm
@maporsche,
Oh Man!

How simple was that!

Thanks maporsche.

DrewDad
 
  1  
Reply Mon 19 Apr, 2010 02:57 pm
@chai2,
Assuming column A is the date, then:

=IF(A1-"1/1/2010">=0,B1,"")
0 Replies
 
chai2
 
  1  
Reply Mon 19 Apr, 2010 02:57 pm
ok, show's over.

move along now.
0 Replies
 
DrewDad
 
  1  
Reply Mon 19 Apr, 2010 02:58 pm
Of course, maporche's is simpler.
0 Replies
 
maporsche
  Selected Answer
 
  2  
Reply Mon 19 Apr, 2010 03:21 pm
@chai2,
No problem.

You could make my answer the "Selected Answer" and then I can join the ranks of the 'helpful' people of A2K.
chai2
 
  1  
Reply Mon 19 Apr, 2010 03:38 pm
@maporsche,
I too hope to walk amongst the excel gods one day.

For now, I am only excel geek, not excel guru.
jespah
 
  1  
Reply Mon 19 Apr, 2010 04:17 pm
@chai2,
Ooh, sorry I missed this one. Nice job, all.
Rockhead
 
  1  
Reply Mon 19 Apr, 2010 04:21 pm
@jespah,
Word.
DrewDad
 
  1  
Reply Mon 19 Apr, 2010 04:34 pm
@maporsche,
Haha! She made your begging for a "selected answer" ribbon the selected answer!

<mopes due to not having a selected answer ribbon>
maporsche
 
  1  
Reply Mon 19 Apr, 2010 05:24 pm
@DrewDad,
Haha...I'll take what I can get. Laughing
0 Replies
 
chai2
 
  2  
Reply Mon 19 Apr, 2010 06:41 pm
@Rockhead,
Rockhead wrote:

Word.


Am I the only one who got that?
DrewDad
 
  1  
Reply Mon 19 Apr, 2010 08:36 pm
@chai2,
Office humor?
Region Philbis
 
  1  
Reply Tue 20 Apr, 2010 03:55 am
@DrewDad,

excel-lent...
jespah
 
  1  
Reply Tue 20 Apr, 2010 05:24 am
@Region Philbis,
Accessssssssss-zactly.
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » Excel formula needed
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.11 seconds on 12/23/2024 at 01:02:28