If value false, look in next cell

cburgin

New Member
Joined
May 14, 2014
Messages
2
Hi,

I want a formula that will look in a table, and return a value if a condition is met, and if the condition is not met, searches for the next entry that fulfills the criteria. For example, if an entry is classed under "Pizza", I want it to pull through the details of the pizza, "Topping", "Base", "Price". If the entry is not classified under "Pizza", I want it to look for the next "Pizza" entry and enter it in the row. I want to do this with no blank rows, as potentially there may be thousands of entries and need a concise list that just summarises "Pizza" entries.

Is there a way to do this without macros?

Thanks.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi cburgin,

It's difficult to provide an answer not knowing the layout of the data.

Have you tried to sort the data? If you're looking more formula based solution, I'd try the '=IF()' formula. It allows you to test a condition and it will provide results based on whether the test is true or false.

Thanks,
Thomas
 
Upvote 0
Hi Thomas,

Thanks for your reply. I've got an answer at the moment, which involves the indirect function to find rows with a certain fulfilled criterion. Not sure if it is the most straightforward way, but it works for me.

Thanks for your reply.
 
Upvote 0
As Thomas mentioned, it's difficult to solve without the layout....
but, you could also consider looking at the VLOOKUP function for extracting matching data
AND
maybe a VBA solution would be simpler......but layout is a 1st requirement...:beerchug:
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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