Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default Test IF Two Numeric Values Match (from two separate Dynamic Ranges)

Hi All,

I have two Dynamic Ranges: "ACTUAL" spans 7 Columns and many Rows. "FORECAST"
is one Column and many Rows.

I would like to check if the numeric values in the LAST Column of "ACTUAL"
match the values in "FORECAST" on the same Row. If there is a match on the
same Row, I would like a text string of "yes" returned; blank if no match.

The numeric values in "ACTUAL" are all integers. However, the numeric values
in "FORECAST" are a mix of integers and numbers to five decimal places.

So, if the LAST Column of "ACTUAL" has a value of 61 and the corresponding
Row in "FORECAST" has a value of 61.33333 then, this should be taken as a
match. However, if the value in "FORECAST" is 61.66667 then, this is viewed
as 62 and is NOT a match with 61.

Thanks
Sam


--
Message posted via http://www.officekb.com
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

From your description it sounds like only the number of rows in your ranges
are dynamic.

Just because the ranges are named doesn't mean you have to use those names
in any formulas.

Assume that column 7 of ACTUAL is in column G, G2:Gn

FORECAST is in column H, H2:Hn

=IF(OR(G2="",H2=""),"",IF(ROUND(H2,0)=G2,"Yes","") )

Copy down to enough rows to allow for future addition of data in the named
ranges.

Now, here's that same formula using the range names:

=IF(OR(INDEX(Actual,ROW(1:1),7)="",INDEX(Forecast, ROW(1:1))=""),"",IF(ROUND(INDEX(Forecast,ROW(1:1)) ,0)=INDEX(Actual,ROW(1:1),7),"Yes",""))

Biff

"Sam via OfficeKB.com" wrote in message
...
Hi All,

I have two Dynamic Ranges: "ACTUAL" spans 7 Columns and many Rows.
"FORECAST"
is one Column and many Rows.

I would like to check if the numeric values in the LAST Column of
"ACTUAL"
match the values in "FORECAST" on the same Row. If there is a match on the
same Row, I would like a text string of "yes" returned; blank if no match.

The numeric values in "ACTUAL" are all integers. However, the numeric
values
in "FORECAST" are a mix of integers and numbers to five decimal places.

So, if the LAST Column of "ACTUAL" has a value of 61 and the
corresponding
Row in "FORECAST" has a value of 61.33333 then, this should be taken as a
match. However, if the value in "FORECAST" is 61.66667 then, this is
viewed
as 62 and is NOT a match with 61.

Thanks
Sam


--
Message posted via http://www.officekb.com



  #3   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default

Hi Biff,

Thank you very much for both alternatives - great! Very much appreciated.

Biff wrote:
Assume that column 7 of ACTUAL is in column G, G2:Gn
FORECAST is in column H, H2:Hn
=IF(OR(G2="",H2=""),"",IF(ROUND(H2,0)=G2,"Yes","" ))

Copy down to enough rows to allow for future addition of data in the named ranges.

Now, here's that same formula using the range names:
=IF(OR(INDEX(Actual,ROW(1:1),7)="",INDEX(Forecast ,ROW(1:1))=""),"",IF(ROUND(INDEX(Forecast,ROW(1:1) ),0)=INDEX(Actual,ROW(1:1),7),"Yes",""))


Cheers,
Sam


--
Message posted via http://www.officekb.com
  #4   Report Post  
Biff
 
Posts: n/a
Default

You're welcome. Thanks for the feedback!

Biff

"Sam via OfficeKB.com" wrote in message
...
Hi Biff,

Thank you very much for both alternatives - great! Very much appreciated.

Biff wrote:
Assume that column 7 of ACTUAL is in column G, G2:Gn
FORECAST is in column H, H2:Hn
=IF(OR(G2="",H2=""),"",IF(ROUND(H2,0)=G2,"Yes"," "))

Copy down to enough rows to allow for future addition of data in the named
ranges.

Now, here's that same formula using the range names:
=IF(OR(INDEX(Actual,ROW(1:1),7)="",INDEX(Forecas t,ROW(1:1))=""),"",IF(ROUND(INDEX(Forecast,ROW(1:1 )),0)=INDEX(Actual,ROW(1:1),7),"Yes",""))


Cheers,
Sam


--
Message posted via http://www.officekb.com



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
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
Text values to numeric values jayveejay Excel Discussion (Misc queries) 1 August 10th 05 05:03 PM
How to use an array or matrix to return text vs. numeric values Ingrid Excel Worksheet Functions 2 April 10th 05 12:51 AM
Leading Zeros in Numeric Values DBavirsha Excel Worksheet Functions 6 January 4th 05 05:21 PM
How do I match values? Ursula Excel Worksheet Functions 1 November 11th 04 03:25 PM


All times are GMT +1. The time now is 03:17 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"