Finding 1st value in row if prior cells in the row are blank

NotaVBAeXpert

New Member
Joined
May 4, 2018
Messages
26
Hi,

I am trying to find the amount located in specific cell based on month/year(x/xx). I have multiple worksheets; the first worksheet showing what value to look up and the specific date, for example... I need to lookup value 454839 on 1/13(January 2013).

My 2nd worksheet shows the data with the lookup values going down Column A and the dates across the columns in the 1st row.

I currently have a vlookup and match function:

(
=VLOOKUP(A30,'Std Values'!C:CG,MATCH('Non-Std Calc '!G30,Sheet5!$C$1:$CG$1,0),FALSE)

But I need help figuring out a macro or formula if the output from my above formual is blank.because there is a value in those cells. I would need the next value in that particualr row which would match the value in the row.Any ideas?
 
Would you test whether the following edit succeeds?

=INDEX('Std Values'!$D$2:$CG$400,MATCH(1,IF('Std Values'!$C$2:$C$400=$A115,IF(ISNUMBER(1/INDEX('Std Values'!$D$2:$CG$400,0,MATCH($G115,'Std Values'!$D$1:$CG$1,0))),1)),0),MATCH($G115,'Std Values'!$D$1:$CG$1,0))

That doesn't work either. Hmmmm. it is still showing a #N/A
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
That doesn't work either. Hmmmm. it is still showing a #N/A

Given the following data:

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
C​
[/td][td]
D​
[/td][td]
E​
[/td][td]
F​
[/td][/tr][tr][td]
1​
[/td][td][/td][td]
5/4/2018​
[/td][td]
5/5/2018​
[/td][td]
5/6/2018​
[/td][/tr]
[tr][td]
2​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
3​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
4​
[/td][td]a[/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
5​
[/td][td]a[/td][td]
0.2​
[/td][td][/td][td][/td][/tr]
[tr][td]
6​
[/td][td]b[/td][td]
0.9​
[/td][td][/td][td][/td][/tr]
[tr][td]
7​
[/td][td]c[/td][td]
6​
[/td][td][/td][td][/td][/tr]
[tr][td]
8​
[/td][td]c[/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
9​
[/td][td]d[/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
10​
[/td][td]d[/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
11​
[/td][td]d[/td][td]
0.8​
[/td][td][/td][td][/td][/tr]
[tr][td]
12​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
13​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
14​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
15​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


what would be the result for a and 5/4/2018?
 
Upvote 0

Forum statistics

Threads
1,226,694
Messages
6,192,473
Members
453,726
Latest member
JoeH57

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