I think this will be a simple quick fix to the trained eye I am sure- help please

SMISTRETTA

New Member
Joined
Jul 23, 2010
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I have a bunch of data, see below:
What formula do I write, where:
It looks down column B and recognises that it is a negative number, then returns the corresponding number in column A.
In this example, the answer will be (37,797) so the result will be 66.

I have gotten myself totally confused with index, matches, lookups. I need a fresh pair of eyes, thank you.



45​
-
46​
-
47​
-
48​
-
49​
-
50​
-
51​
-
52​
-
53​
-
54​
-
55​
-
56​
-
57​
-
58​
-
59​
-
60​
-
61​
-
62​
-
63​
-
64​
-
65​
-
66​
(37,797)
67​
-
68​
-
69​
-
70​
(80,827)
71​
(81,080)
72​
(81,334)
73​
(81,588)
74​
(81,844)
75​
(82,100)
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Wouldn't you just drag something like this down some other column, like C?
IF(B1<0,A1,"")
The desired result you posted doesn't say what's supposed to happen because of the other negative numbers, so an assumption would be that you'd need the formula in every row.
 
Upvote 0
I need the cell to return just one result. So logically I want it to look down the list in B and at the first point it detects the number (37,797), I want the single cell to tell me, hey I found (37,797) and that is located in row 66. So I know the first output which happens to be (37,797) in this case occurs in row 66. The single-cell I refer to is right at the top of the list.
It's worth mentioning that I want it to ignore the rest of the data below, for it to just return the row number as soon as it hits the first number in the list. Thank make sense?

Thank you
 
Last edited:
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks for that, how about either of these
+Fluff 1.xlsm
ABC
1
245-66
346-66
447-
548-
649-
750-
851-
952-
1053-
1154-
1255-
1356-
1457-
1558-
1659-
1760-
1861-
1962-
2063-
2164-
2265-
2366-37,797
2467-
2568-
2669-
2770-80,827
2871-81,080
2972-81,334
3073-81,588
3174-81,844
3275-82,100
Primary
Cell Formulas
RangeFormula
C2C2=INDEX(A2:A32,XMATCH(-0.00001,B2:B32,-1))
C3C3=INDEX(FILTER(A2:A32,B2:B32<0),1)
 
Upvote 0
Oh my goodness, you are a wonderful person!!!! They both worked an absolute treat!!! Thank you, thank you, thank you. It's been driving me mad all day.
 
Upvote 0
And let's hope England win at the weekend ;), last Saturday was tough to watch, why take off Smith when he was doing so well!!
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,734
Members
449,094
Latest member
dsharae57

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