IF function

alesbury

New Member
Joined
Jun 4, 2011
Messages
9
Hi All,

I'm new to Excel really, but have looked through a number of the posts here to try to find a solution to my problem - no joy.

I have two set of monthly data which increase at different rates.

When Data A becomes higher than Data B i need to display the month this occurs in a new cell.

Any thoughts ?

Many thanks in advance.
S:laugh:
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Can you please provide an example of how your data is laid out, as well as your desired output? I'm not sure where the formula needs to look for the month, where Data A is, and where Data B is, etc...
 
Upvote 0
How about an example layout? Or at least describe the layouts, and tell where the relevant date value is in relation to the data.
 
Upvote 0
Hi All,

I'm new to Excel really, but have looked through a number of the posts here to try to find a solution to my problem - no joy.

I have two set of monthly data which increase at different rates.

When Data A becomes higher than Data B i need to display the month this occurs in a new cell.

Any thoughts ?

Many thanks in advance.
S:laugh:
Maybe something like this...

Book1
ABC
1_Data AData B
21/1/201111
32/1/201125
43/1/201156
54/1/201189
65/1/20111510
76/1/20111920
87/1/20112625
98/1/20112726
109/1/20113533
1110/1/20115055
1211/1/20116066
1312/1/20119277
Sheet1

This array formula**:

=INDEX(A2:A13,MATCH(TRUE,B2:B13>C2:C13,0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Format as Date
 
Upvote 0
Month 1 Month 2 Month 3 Month 4 Month 5 Month 6
DATA A £1,044.61 £1,289.22 £1,533.82 £1,778.43 £3,823.04 £4,067.65
DATA B £3,314.17 £3,427.74 £3,541.30 £3,654.87 £3,768.44 £3,882.01

I'm not sure how to get a table imported ;), however i think you get the idea..

The month headings should line up with the Data set below them.

However. The two data sets are a result of other calculations thus when the input data is changed the Month that Data B becomes smaller than Data A will change and that is what i need to show in a new cell.

Clear as mud ?

I can supply more if required. thanks again for your help.
S:laugh:
 
Upvote 0
Month 1 Month 2 Month 3 Month 4 Month 5 Month 6
DATA A £1,044.61 £1,289.22 £1,533.82 £1,778.43 £3,823.04 £4,067.65
DATA B £3,314.17 £3,427.74 £3,541.30 £3,654.87 £3,768.44 £3,882.01

I'm not sure how to get a table imported ;), however i think you get the idea..

The month headings should line up with the Data set below them.

However. The two data sets are a result of other calculations thus when the input data is changed the Month that Data B becomes smaller than Data A will change and that is what i need to show in a new cell.

Clear as mud ?

I can supply more if required. thanks again for your help.
S:laugh:
Book1
ABCDEFG
1_Month 1Month 2Month 3Month 4Month 5Month 6
2Data A1,044.611,289.221,533.821,778.433,823.044,067.65
3Data B3,314.173,427.743,541.303,654.873,768.443,882.01
Sheet1

This array formula**:

=INDEX(B1:G1,MATCH(TRUE,B2:G2>B3:G3,0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top