#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Histogram

Hi,
Is there any way in which excel can recognise two numbers as a range? I
would like to create a kind of histogram which can describe how many times a
point along this range has been crossed over a specific time frame...

For example:

High Low
Day1 300 290
Day2 310 295
Day3 305 290
Day4 300 285

Range Day1 Day2 Day3 Day4 Count
280 0
285 x 1
290 x x x 3
295 x x x x 4
300 x x x x 4
305 x x 2
310 x 1
315 0
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Histogram

One way...

This data in the range A2:C5 -

Day1...300...290
Day2...310...295
Day3...305...290
Day4...300...285


Your matrix table in the range...

Column headers: A8:F8
Row headers: A9:A16

Enter this formula in B9:

=IF($A9=MEDIAN(INDEX($B$2:$C$5,MATCH(B$8,$A$2:$A$5 ,0),0),$A9),"x","")

Copy across to E9 then down to B16:E16

For the count enter this formula in F9:

=COUNTIF(B9:E9,"x")

Copy down to F16.

--
Biff
Microsoft Excel MVP


"Nestor" wrote in message
...
Hi,
Is there any way in which excel can recognise two numbers as a range? I
would like to create a kind of histogram which can describe how many times
a
point along this range has been crossed over a specific time frame...

For example:

High Low
Day1 300 290
Day2 310 295
Day3 305 290
Day4 300 285

Range Day1 Day2 Day3 Day4 Count
280 0
285 x 1
290 x x x 3
295 x x x x 4
300 x x x x 4
305 x x 2
310 x 1
315 0



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Histogram

Thank you very much T. Valko, that was very helpful. I have one more question
for you:

On Day4 (or the last day), if I have a close number at 298, for example, how
can I indicate this on the count? Such as highlighting the count number red.

Example:
..........High..Low..Close
Day1...300...290...295
Day2...310...295...303
Day3...305...290...302
Day4...300...285...298

Range Day1 Day2 Day3 Day4 Count
280 0
285 x 1
290 x x x 3
295 x x x x 4
300 x x x x 4(RED)
305 x x 2
310 x 1
315 0




"T. Valko" wrote:

One way...

This data in the range A2:C5 -

Day1...300...290
Day2...310...295
Day3...305...290
Day4...300...285


Your matrix table in the range...

Column headers: A8:F8
Row headers: A9:A16

Enter this formula in B9:

=IF($A9=MEDIAN(INDEX($B$2:$C$5,MATCH(B$8,$A$2:$A$5 ,0),0),$A9),"x","")

Copy across to E9 then down to B16:E16

For the count enter this formula in F9:

=COUNTIF(B9:E9,"x")

Copy down to F16.

--
Biff
Microsoft Excel MVP


"Nestor" wrote in message
...
Hi,
Is there any way in which excel can recognise two numbers as a range? I
would like to create a kind of histogram which can describe how many times
a
point along this range has been crossed over a specific time frame...

For example:

High Low
Day1 300 290
Day2 310 295
Day3 305 290
Day4 300 285

Range Day1 Day2 Day3 Day4 Count
280 0
285 x 1
290 x x x 3
295 x x x x 4
300 x x x x 4
305 x x 2
310 x 1
315 0



.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Histogram

I'm not sure I understand the relationship.

Can you post several more examples and tell me which cell should be
highlighted? For example:

If the 298 was:

280, then highlight ___
288, then highlight ___
320, then highlight ___
302, then highlight ___

--
Biff
Microsoft Excel MVP


"Nestor" wrote in message
...
Thank you very much T. Valko, that was very helpful. I have one more
question
for you:

On Day4 (or the last day), if I have a close number at 298, for example,
how
can I indicate this on the count? Such as highlighting the count number
red.

Example:
.........High..Low..Close
Day1...300...290...295
Day2...310...295...303
Day3...305...290...302
Day4...300...285...298

Range Day1 Day2 Day3 Day4 Count
280 0
285 x 1
290 x x x 3
295 x x x x 4
300 x x x x 4(RED)
305 x x 2
310 x 1
315 0




"T. Valko" wrote:

One way...

This data in the range A2:C5 -

Day1...300...290
Day2...310...295
Day3...305...290
Day4...300...285


Your matrix table in the range...

Column headers: A8:F8
Row headers: A9:A16

Enter this formula in B9:

=IF($A9=MEDIAN(INDEX($B$2:$C$5,MATCH(B$8,$A$2:$A$5 ,0),0),$A9),"x","")

Copy across to E9 then down to B16:E16

For the count enter this formula in F9:

=COUNTIF(B9:E9,"x")

Copy down to F16.

--
Biff
Microsoft Excel MVP


"Nestor" wrote in message
...
Hi,
Is there any way in which excel can recognise two numbers as a range? I
would like to create a kind of histogram which can describe how many
times
a
point along this range has been crossed over a specific time frame...

For example:

High Low
Day1 300 290
Day2 310 295
Day3 305 290
Day4 300 285

Range Day1 Day2 Day3 Day4 Count
280 0
285 x 1
290 x x x 3
295 x x x x 4
300 x x x x 4
305 x x 2
310 x 1
315 0



.



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
I was creating a histogram; now i have data but no histogram. ShannonMills3 Excel Worksheet Functions 0 June 14th 06 12:03 AM
How to Histogram w/o raw data but histogram Table on Excel 2005 Charts and Charting in Excel 1 February 1st 06 06:48 AM
Histogram durino13 Excel Discussion (Misc queries) 7 August 18th 05 01:29 PM
histogram canadian excel user Excel Discussion (Misc queries) 1 July 30th 05 11:50 PM
More bin in histogram jiang Charts and Charting in Excel 1 June 24th 05 02:32 PM


All times are GMT +1. The time now is 11:08 AM.

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

About Us

"It's about Microsoft Excel"